diff --git a/localization/strings.pot b/localization/strings.pot index bc7f7dd4..b43b4729 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -1076,7 +1076,7 @@ msgstr "" msgid "Product count" msgstr "" -msgid "Type a new product name or barcode and hit TAB to start a workflow" +msgid "Type a new product name or barcode and hit TAB or ENTER to start a workflow" msgstr "" msgid "This will be used as the default setting when adding this product as a recipe ingredient" diff --git a/public/viewjs/components/productpicker.js b/public/viewjs/components/productpicker.js index cfb32e1b..f57fb56b 100644 --- a/public/viewjs/components/productpicker.js +++ b/public/viewjs/components/productpicker.js @@ -123,6 +123,7 @@ if (addBarcode !== undefined) $('#addbarcodetoselection').text(addBarcode); $('#flow-info-addbarcodetoselection').removeClass('d-none'); $('#barcode-lookup-disabled-hint').removeClass('d-none'); + $('#barcode-lookup-hint').addClass('d-none'); } Grocy.Components.ProductPicker.PopupOpen = false; diff --git a/public/viewjs/consume.js b/public/viewjs/consume.js index 407d945d..8cd429d5 100644 --- a/public/viewjs/consume.js +++ b/public/viewjs/consume.js @@ -55,6 +55,7 @@ { $("#flow-info-addbarcodetoselection").addClass("d-none"); $('#barcode-lookup-disabled-hint').addClass('d-none'); + $('#barcode-lookup-hint').removeClass('d-none'); window.history.replaceState({}, document.title, U("/consume")); }, function(xhr) diff --git a/public/viewjs/inventory.js b/public/viewjs/inventory.js index f5995955..e3dd7804 100644 --- a/public/viewjs/inventory.js +++ b/public/viewjs/inventory.js @@ -53,6 +53,7 @@ { $("#flow-info-addbarcodetoselection").addClass("d-none"); $('#barcode-lookup-disabled-hint').addClass('d-none'); + $('#barcode-lookup-hint').removeClass('d-none'); window.history.replaceState({}, document.title, U("/inventory")); }, function(xhr) diff --git a/public/viewjs/purchase.js b/public/viewjs/purchase.js index bb682c96..7aefb70d 100644 --- a/public/viewjs/purchase.js +++ b/public/viewjs/purchase.js @@ -74,6 +74,7 @@ { $("#flow-info-addbarcodetoselection").addClass("d-none"); $('#barcode-lookup-disabled-hint').addClass('d-none'); + $('#barcode-lookup-hint').removeClass('d-none'); window.history.replaceState({}, document.title, U("/purchase")); }, function(xhr) diff --git a/public/viewjs/transfer.js b/public/viewjs/transfer.js index 2885ff0b..2d6effbb 100644 --- a/public/viewjs/transfer.js +++ b/public/viewjs/transfer.js @@ -40,6 +40,7 @@ { $("#flow-info-addbarcodetoselection").addClass("d-none"); $('#barcode-lookup-disabled-hint').addClass('d-none'); + $('#barcode-lookup-hint').removeClass('d-none'); window.history.replaceState({}, document.title, U("/transfer")); }, function(xhr) diff --git a/views/components/datetimepicker.blade.php b/views/components/datetimepicker.blade.php index d483f89f..275b4a39 100644 --- a/views/components/datetimepicker.blade.php +++ b/views/components/datetimepicker.blade.php @@ -67,7 +67,7 @@