diff --git a/application/views/receivings/receiving.php b/application/views/receivings/receiving.php index 824f347af..77f050c19 100644 --- a/application/views/receivings/receiving.php +++ b/application/views/receivings/receiving.php @@ -372,6 +372,13 @@ $(document).ready(function() $('#item').focus(); + $('#item').keypress(function (e) { + if (e.which == 13) { + $('#add_item_form').submit(); + return false; + } + }); + $('#item').blur(function() { $(this).attr('value',"lang->line('sales_start_typing_item_name'); ?>"); diff --git a/application/views/sales/register.php b/application/views/sales/register.php index 26f0c762f..b7db282d9 100644 --- a/application/views/sales/register.php +++ b/application/views/sales/register.php @@ -68,25 +68,26 @@ if (isset($success)) 'add_item_form', 'class'=>'form-horizontal panel panel-default')); ?> -
- -
+
+ +
+ @@ -528,6 +529,13 @@ $(document).ready(function() $('#item').focus(); + $('#item').keypress(function (e) { + if (e.which == 13) { + $('#add_item_form').submit(); + return false; + } + }); + $('#item').blur(function() { $(this).val("lang->line('sales_start_typing_item_name'); ?>");