1loading = true; 2Adianti.waitMessage = 'Cargando'; 3Adianti.onClearDOM = function(){ 4 /* $(".select2-hidden-accessible").remove(); */ 5 $(".colorpicker-hidden").remove(); 6 $(".select2-display-none").remove(); 7 $(".tooltip.fade").remove(); 8 $(".select2-drop-mask").remove(); 9 /* $(".autocomplete-suggestions").remove(); */ 10 $(".datetimepicker").remove(); 11 $(".note-popover").remove(); 12 $(".dtp").remove(); 13 $("#window-resizer-tooltip").remove(); 14}; 15 16function showLoading() 17{ 18 if(loading) 19 { 20 __adianti_block_ui('Cargando'); 21 } 22} 23 24Adianti.onBeforeLoad = function(url) 25{ 26 loading = true; 27 setTimeout(function(){showLoading()}, 400); 28 if (url.indexOf('scrolltotop=1') !== -1) { 29 $("html, body").animate({ scrollTop: 0 }, "fast"); 30 } 31}; 32 33Adianti.onAfterLoad = function(url, data) 34{ 35 loading = false; 36 __adianti_unblock_ui(true); 37 pgsECommerce.onAfterLoad(url,data); 38}; 39 40Adianti.onBeforePost = function (url,data){ 41 if (url.indexOf('scrolltotop=1') !== -1) { 42 $("html, body").animate({ scrollTop: 0 }, "fast"); 43 } 44} 45 46Adianti.onAfterPost = function(url, data){ 47 pgsECommerce.onAfterLoad(url,data); 48}; 49 50Adianti.registerState = true; 51 52// set select2 language 53$.fn.select2.defaults.set('language', $.fn.select2.amd.require("select2/i18n/pt")); 54 55 56 57/** 58 * Custom JAVASCRIPT 59 */ 60 61/** 62 * Show message info dialog 63 */ 64function __adianti_message(title, message, callback) 65{ 66 __adianti_dialog( { type: 'success', title: title, message: message, callback: callback} ); 67} 68 69/** 70 * Show standard dialog 71 */ 72function __adianti_dialog( options ) 73{ 74 setTimeout( function() { 75 Swal.fire({ 76 html: options.message, 77 title: options.title, 78 icon: options.type, 79 allowEscapeKey: (typeof options.callback == 'undefined' ? true : false), 80 allowOutsideClick: (typeof options.callback == 'undefined' ? true : false) 81 }).then((result) => { 82 if (result.value) { 83 if (typeof options.callback != 'undefined') { 84 options.callback(); 85 } 86 } 87 }); 88 89 }, 100); 90} 91 92/** 93 * Show question dialog 94 */ 95function __adianti_question(title, message, callback_yes, callback_no, label_yes, label_no) 96{ 97 setTimeout( function() { 98 Swal.fire({ 99 html: message, 100 title: title, 101 icon: 'warning', 102 showCancelButton: true, 103 confirmButtonColor: '#3085d6', 104 cancelButtonColor: '#d33', 105 confirmButtonText: label_yes, 106 cancelButtonText: label_no, 107 allowEscapeKey: false, 108 allowOutsideClick: false 109 }).then((result) => { 110 if (result.value) { 111 if (typeof callback_yes != 'undefined') { 112 callback_yes(); 113 } 114 }else{ 115 if (typeof callback_no != 'undefined') { 116 callback_no(); 117 } 118 } 119 }); 120 }, 100); 121}
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.