Pekriq.User = function(){} Pekriq.User.sendReg = function(){ var form = $('.userRegForm'); var params = form.serializeObject(); params.class = 'userreg'; params.method = 'SaveRegistration'; var loader = Pekriq.ajaxLoader(form); $.post( '/', params, function(data){ var f = new Pekriq.Forms(form); var validateData = f.validate(data); var msg = $('.alert', form); msg.removeClass('alert-warning').removeClass('alert-info'); if(validateData.valid){ if(validateData.novalid_pa_id){ msg.addClass('alert-warning'); msg.find('.text').html('Nincs érvényes partnerazonosító megdva!'); }else{ msg.addClass('alert-info'); msg.find('.text').html('Az adatokat sikeresen mentettük!'); if(!validateData.loadedItem)form.get(0).reset(); $('.paElementsContainer').html(validateData.pdatas); if(validateData.pa_id_error && validateData.pa_id_error != ''){ $('.paErrorElementsContainer').html('Nincs ilyen partner: '+validateData.pa_id_error).show(); }else{ $('.paErrorElementsContainer').hide(); } if(validateData.reload) document.location.reload(); if(typeof grecaptcha != "undefined"){ grecaptcha.reset(); } } }else{ msg.addClass('alert-warning'); var msgList = []; var hasRecaptchaValidationError = false; for(var i = 0; i0){ $.getJSON( '/', { class: 'userreg', method: 'UserSearch', us: val }, function(data){ var html = []; for(var i in data){ html.push('
  • '+data[i].unw_user_name+' ('+data[i].unw_user_id+')' +'
  • ') } Pekriq.User.quickSearch.listContainer.html(html.join('')).show(); } ) }else{ Pekriq.User.quickSearch.listContainer.html('').hide(); } }) } Pekriq.User.quickSearch.listContainer = null Pekriq.User.quickSearch.getListContainer = function(parent){ if(!parent || parent.length == 0) { return; } if(!Pekriq.User.quickSearch.listContainer){ Pekriq.User.quickSearch.listContainer = $('