1/** 2 * Created by dmitry on 08.07.16. 3 */ 4 5function replaceForm(formId, data) 6{ 7 $(formId).parent().replaceWith(data); 8} 9 10function showModalResult(data) 11{ 12 if (typeof data === 'string') { 13 pageObject = JSON.parse(data); 14 } 15 else { 16 pageObject = data; 17 } 18 19 modalWindow = $('div#modalResult'); 20 21 modalWindow.find('.modal-body').html(pageObject.html); 22 modalWindow.find('.modal-header').html(pageObject.title); 23 24 modalWindow.modal() 25} 26 27function lockSubmitButtons(formName) { 28 $('#form_' + formName + ' input[type="submit"]').attr('disabled', 'disabled'); 29 $('#form_' + formName + ' button[type="submit"]').attr('disabled', 'disabled').addClass('has-spinner--active'); 30} 31 32function unlockSubmitButtons(formName) { 33 $('#form_' + formName + ' input[type="submit"]').removeAttr('disabled'); 34 $('#form_' + formName + ' button[type="submit"]').removeAttr('disabled').removeClass('has-spinner--active'); 35} 36 37function resetValidators(formName) 38{ 39 for (var prop in window) { 40 if (prop.indexOf('executed_' + formName) == 0) {// check the prefix 41 eval('window.' +prop +'= undefined;'); 42 } 43 } 44} 45 46function hideBackdrop() { 47 $('.modal-backdrop.fade.in').remove(); 48}
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.