?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec_old/application/views/documentreadyfunctions.php |
<script defer type="text/javascript"> $(document).ready(function() { $('#table-example').dataTable(); $('#table-example_noHeader').dataTable({ "bPaginate": false, "bLengthChange": false, "bFilter": false, "bSort": false, "bInfo": false, "bAutoWidth": false}); $(window).resize(); $('.calfocus').datepick({dateFormat: 'dd-mm-yyyy'}); $(".number_three").mask("999"); $(".addRow").btnAddRow({inputBoxAutoNumber:true},function(row) { $(row).find('.calfocus').each(function() { $(this).removeClass(); $(this).addClass('calfocus').addClass('medium'); $(this).datepick({dateFormat: 'dd-mm-yyyy'}); }); }); $(".delRow").btnDelRow(); $('input.auto').autoNumeric(); $(".num_only").keydown(function(event) { // Allow: backspace, delete, tab, escape, and enter if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 || // Allow: Ctrl+A (event.keyCode == 65 && event.ctrlKey === true) || // Allow: home, end, left, right (event.keyCode >= 35 && event.keyCode <= 39)) { // let it happen, don't do anything return; } else { // Ensure that it is a number and stop the keypress if (event.shiftKey || (event.keyCode < 48 || event.keyCode > 57) && (event.keyCode < 96 || event.keyCode > 105 )) { event.preventDefault(); } } }); $("input.auto").css('text-align', 'right'); $('select').chosen(); $("form > textarea").bind("keyup", function (event){ var code = event.keyCode || event.which; if(code == 13) { event.preventDefault(); return false; } }); }); </script> <script defer src="<?=base_url()?>assets/js/script.js"></script>