1(function (root, $, factory) { 2 factory($); 3}(window, window.jQuery, function ($) { 4 $(document).ready(function () { 5 var components = $('.component-content'); 6 var forms = components.find('form'); 7 $(forms).each(function () { 8 var form = this; 9 $(this).on('submit', function () { 10 if ($(form).valid()) { 11 window.MessageContext.ClearAllMessages(); 12 13 var submitButton = $(this).find(':submit'); 14 if (!$(submitButton).hasClass('search-button')) { 15 $(submitButton).button('loading'); 16 } 17 18 } 19 20 }); 21 if (!CXAApplication.IsExperienceEditorMode()) { 22 $(document).on('ajaxComplete', function () { 23 // SITE-3218 Stop resetting button state 24 // Remove lines to 'reset' button. 'reset' in OnComplete of each individual form if needed. 25 }); 26 $(document).on('ajaxError', function () { 27 var submitButton = $(forms).find(':submit'); 28 $(submitButton).button('reset'); 29 }); 30 } 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.