Fixed that a entered barcode on the product edit page was only saved when "adding" it to the barcodes list by pressing TAB (closes #269)

This commit is contained in:
Bernd Bestel 2019-06-09 09:21:56 +02:00
parent 6b98fa85d3
commit 7c7c5db28c
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 6 additions and 0 deletions

View File

@ -5,5 +5,6 @@
- Fixed that login did not work when "Stay logged in permanently" was set on grocy runs on a 32-bit system (thanks @matejdro)
- Fixed page reloads when "Auto reload on external changes" is enabled and there is unsaved form data (the detection did not work on forms in modal dialogs, e. g. when adding a entry to the meal plan)
- Fixed (again) that the product picker did not work properly when the product name contains single quotes
- Fixed that a entered barcode on the product edit page was only saved when "adding" it to the barcodes list by pressing `TAB` (is now automatically added to the list also when just leaving the field)
- Improved that errors/messages from the API are shown properly when undoing a stock booking is not possible (stock journal page)
- Improved night mode CSS (done by @BlizzWave, thanks!)

View File

@ -149,6 +149,11 @@ if (prefillBarcode !== undefined)
$('#name').focus();
}
$("#barcode-taginput").on("blur", function(e)
{
$("#barcode-taginput").tagsManager("pushTag", $("#barcode-taginput").val());
});
$('.input-group-qu').on('change', function(e)
{
var quIdPurchase = $("#qu_id_purchase").val();