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
c7f8a98b
Commit
c7f8a98b
authored
Dec 14, 2021
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
press enter added
parent
78f6aa31
Pipeline
#1641
failed with stage
in 1 minute 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
orders_helper.js
orders/static/js/orders_helper.js
+1
-7
No files found.
orders/static/js/orders_helper.js
View file @
c7f8a98b
...
...
@@ -1605,12 +1605,6 @@ function display_products(params) {
// Since data change is saved on blur, set focus on change in case of arrows pressed
$
(
this
).
focus
();
})
.
on
(
'keypress'
,
'tbody td .product_qty_input'
,
function
(
e
)
{
// Validate on Enter pressed
if
(
e
.
which
==
13
)
{
$
(
this
).
blur
();
}
})
.
on
(
'keydown'
,
'tbody td .product_qty_input'
,
function
(
e
)
{
if
(
e
.
which
==
38
)
{
e
.
preventDefault
();
...
...
@@ -1631,7 +1625,7 @@ function display_products(params) {
top
:
$
(
window
).
scrollTop
()
-
$
(
"#suppliers_container"
).
outerHeight
()
});
}
}
else
if
(
e
.
which
==
40
)
{
}
else
if
(
e
.
which
==
13
,
40
)
{
e
.
preventDefault
();
// On arrow down pressed, focus previous row input
...
...
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