1!function(f) { 2 f(window, document, jQuery, new this.KBChangeForm('#kbUserRegister')); 3}(function(win, doc, $, cf) { 4 5 var loginElms = cf.getForm().find('input[name="login[email]"], input[name="login[password]"], [data-recaptcha-result]'); 6 loginElms.on('input propertychange', function() { 7 var disabled = loginElms.get().filter(function(elm) { 8 if ($(elm).attr('data-recaptcha-result')) { 9 return $(elm).attr('data-recaptcha-result') === 'success'; 10 } 11 return true; 12 }).length !== loginElms.length; 13 cf.getForm().find('[data-click="submit"]').prop('disabled', disabled); 14 }).trigger('input'); 15 16 // recaptcha 17 $(win).on('recaptchasuccess recaptchaexpired', function() { 18 loginElms.trigger('input'); 19 }); 20 21 cf.getForm().find('[data-click="submit"]').on('click', function(e){ 22 e.preventDefault(); 23 cf.detachLeaveEvent(); 24 cf.getForm().trigger('submit'); 25 return true; 26 }); 27 28 var formErrors = $('#formErrors'); 29 if (0 < formErrors.length) { 30 cf.displayError(JSON.parse(formErrors.text())); 31 } 32 33});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.