Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /home/fdshops/public_html/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/fdshops/public_html/storage/framework/views/03295732d9f85f393ab016c926ba2cdf70b58fcc.php
<script type="text/javascript">
	$(document).ready( function() {
		//Shortcuts to go recent product quantity
		<?php if(!empty($shortcuts["pos"]["recent_product_quantity"])): ?>
			shortcut_length_prev = 0;
			shortcut_position_now = null;

			Mousetrap.bind('<?php echo e($shortcuts["pos"]["recent_product_quantity"], false); ?>', function(e, combo) {
				
				var length_now = $('table#purchase_entry_table tr').length;

				if(length_now != shortcut_length_prev){
					shortcut_length_prev = length_now;
					shortcut_position_now = length_now;
				} else {
					shortcut_position_now = shortcut_position_now - 1;
				}

				var last_qty_field = $('table#purchase_entry_table tr').eq(shortcut_position_now - 1).contents().find('input.purchase_quantity');
				if(last_qty_field.length >=1){
					last_qty_field.focus().select();
				} else {
					shortcut_position_now = length_now + 1;
					Mousetrap.trigger('<?php echo e($shortcuts["pos"]["recent_product_quantity"], false); ?>');
				}
			});

			//On focus of quantity field go back to search when stop typing
			// var timeout = null;
			// $('table#purchase_entry_table').on('focus', 'input.purchase_quantity', function () {
			//     var that = this;

			//     $(this).on('keyup', function(e){

			//     	if (timeout !== null) {
			//         	clearTimeout(timeout);
			//     	}

			//     	var code = e.keyCode || e.which;
			//     	if (code != '9') {
   //  					timeout = setTimeout(function () {
			//         		$('input#search_product').focus().select();
			//     		}, 5000);
   //  				}
			//     });
			// });
		<?php endif; ?>

		//shortcut to go to add new products
		<?php if(!empty($shortcuts["pos"]["add_new_product"])): ?>
			Mousetrap.bind('<?php echo e($shortcuts["pos"]["add_new_product"], false); ?>', function(e) {
				$('input#search_product').focus().select();
			});
		<?php endif; ?>
	});
</script><?php /**PATH /home/richinei/public_html/resources/views/purchase/partials/keyboard_shortcuts.blade.php ENDPATH**/ ?>

Spamworldpro Mini