?
Current Path : /home1/savoy/www/oscarerp.com/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/www/oscarerp.com/application/views/documentreadyfunctions.php |
<script defer type="text/javascript"> $(document).ready(function() { // alert('this is document ready') $('#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; } }); }); (function() { var themed = false; var active = themed ? 'themed' : '<?= $_SESSION['theme']; ?>'; try { // #nav_main li.current img var $img = $('#nav_main').find('li.current').find('img'); $img.attr('src', $img.attr('src').replace('dark', active)); } catch(e) { }; $('#nav_main').find('li').not('.current').find('ul').hide(); // #nav_main > li > a[href=#] $('#nav_main').children('li').children('a[href="#"]').click(function() { var $this = $(this), $li = $this.parent(), $ul = $li.parent(); try { // a < ul > .current img var $img = $this.parents('ul').children('.current').find('img'); // Toggle image from active to dark $img.attr('src', $img.attr('src').replace(active, 'dark')); } catch(e) {} // Remove .current class from all tabs $ul.children().removeClass('current'); // Add class .current $li.addClass('current'); try { $img = $this.children('img'); // Toggle image from dark to activs $img.attr('src', $img.attr('src').replace('dark', active)); } catch(e) {} // Hide all subnavigation $ul.find('li').children("ul").fadeOut(150); // Show current subnavigation if($li.contains("ul")) { $li.children("ul").fadeIn(150) } return false; }); var newURL = "<?= base_url(); ?>"; if($.fn.checkbox) { $('input[type="checkbox"]').checkbox({ cls : 'checkbox', empty : newURL + '/assets/img/sprites/forms/checkboxes/empty.png' }); $('input:radio').checkbox({ cls : 'radio-button', empty : newURL + '/assets/img/sprites/forms/checkboxes/empty.png' }); } })(); </script> <script defer src="<?= base_url() ?>assets/js/script.js"></script>