File manager - Edit - /home/wwwroot/camplus.hk/ocaademo.camplus.hk/ocaademo_20170518/resources/js/global.js
Back
$(document).ready(function(){ $(document).ajaxStart($.blockUI({ message: '<h2>Please Wait</h2><h5>This may take a few minutes</h5>' })).ajaxStop($.unblockUI()); /* $('ul.page-sidebar-menu > li').each(function(i, v){ if(!$(v).hasClass('sidebar-toggler-wrapper')){ if($(v).children('ul').length >= 1){ if($(v).children('ul').children('li').length == 0){ $(v).remove(); } } } }); */ if ($.browser.msie && parseInt($.browser.version) <= 8) { window.location.href = BASE_URL + "user/browserUpdate"; //$('body').html('<h2 style="color:white;text-align:center"> This site does not support IE8 or below.Please upgrade your browser</h2>') } $(document).on('focusout','input[type="number"]',function(){ var checkInt = parseInt($(this).val()); if(checkInt<0){ alert('Value should be zero or more than zero'); $(this).val('0'); } }) }); $(window).load(function(){ $('<div class="table-scrollable1"><div style="height: 20px;width:'+$(document).find('.table-scrollable > table').width()+'px"></div></div>').insertBefore('.table-scrollable'); $(".table-scrollable").scroll(function(){ $(".table-scrollable1") .scrollLeft($(".table-scrollable").scrollLeft()); }); $(".table-scrollable1").scroll(function(){ $(".table-scrollable") .scrollLeft($(".table-scrollable1").scrollLeft()); }); }) function tableSort(){ $('.gridTable tbody').sortable({ containerSelector: 'table', itemPath: '> tbody', itemSelector: 'tr', placeholder: '<tr class="placeholder"/>' }) } function checkPopover() { var counter = 0; if($('.popoverQuestion').length > 0) { if($.trim($('.popoverQuestion').val()) == '') { counter = 0; $('.popover-content').find('form').before('<label class="error">* Please fill required fields</label>'); return false; } else counter++; } if($('.popoverPlaceholder').length > 0) { if($.trim($('.popoverPlaceholder').val()) == '') { counter = 0; $('.popover-content').find('form').before('<label class="error">* Please fill required fields</label>'); return false; } else counter++; } if($('.popoverOptions').length > 0) { if($.trim($('.popoverOptions').val()) == '') { counter = 0; $('.popover-content').find('form').before('<label class="error">* Please fill required fields</label>'); return false; } else counter++; } if(counter > 0) return true; }
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0.18 |
proxy
|
phpinfo
|
Settings