Form validation and barcode input handling improvements

This commit is contained in:
Bernd Bestel
2017-04-17 16:51:49 +02:00
parent bd29f5da25
commit 2b8c672279
14 changed files with 242 additions and 103 deletions

View File

@@ -36,3 +36,12 @@ $(function()
$('#product-form').validator();
$('#product-form').validator('validate');
});
$('#barcode').keydown(function(event)
{
if (event.keyCode === 13) //Enter
{
event.preventDefault();
return false;
}
});