Add flow to add a new product with prefilled barcode

This commit is contained in:
Bernd Bestel
2017-04-21 22:50:16 +02:00
parent 8e40c50cc1
commit 96209c852c
4 changed files with 36 additions and 1 deletions

View File

@@ -75,6 +75,13 @@ $(function()
$('#name').val(prefillName);
$('#name').focus();
}
var prefillBarcode = Grocy.GetUriParam('prefillbarcode');
if (prefillBarcode !== undefined)
{
$('#barcode-taginput').tagsManager('pushTag', prefillBarcode);
$('#name').focus();
}
});
$('.input-group-qu').on('change', function(e)