Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
third-party
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
third-party
Commits
e928f1f2
Commit
e928f1f2
authored
Apr 16, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reception: force validate edition when enter pressed
parent
10f5d6e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
reception_produits.js
reception/static/js/reception_produits.js
+8
-1
No files found.
reception/static/js/reception_produits.js
View file @
e928f1f2
...
...
@@ -891,7 +891,7 @@ function editProductInfo (productToEdit, value = null) {
}
// Validate product edition
function
validateEdition
(
form
)
{
function
validateEdition
(
form
=
null
)
{
if
(
editing_product
!=
null
)
{
if
(
editProductInfo
(
editing_product
))
{
clearLineEdition
();
...
...
@@ -1643,6 +1643,13 @@ $(document).ready(function() {
}
});
$
(
"#edition_input"
).
keypress
(
function
(
event
)
{
// Force validation when enter pressed in edition
if
(
event
.
keyCode
==
13
||
event
.
which
==
13
)
{
validateEdition
();
}
});
// Barcode reader
$
(
document
).
pos
();
$
(
document
).
on
(
'scan.pos.barcode'
,
function
(
event
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment