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
50f4f29a
Commit
50f4f29a
authored
Jul 05, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INV: fix input focus when product scanned
parent
707b2289
Pipeline
#2294
passed with stage
in 1 minute 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
shelf_inventory.js
shelfs/static/js/shelf_inventory.js
+3
-5
No files found.
shelfs/static/js/shelf_inventory.js
View file @
50f4f29a
...
...
@@ -285,8 +285,7 @@ function edit_event(clicked) {
* If qty is not null, it comes from barcode reading result
* */
function
setLineEdition
(
item
,
qty
)
{
var
edition_input
=
$
(
'#edition_input'
),
set_focus
=
true
;
var
edition_input
=
$
(
'#edition_input'
);
editing_item
=
item
;
$
(
'#product_name'
).
text
(
editing_item
.
name
);
...
...
@@ -308,14 +307,13 @@ function setLineEdition(item, qty) {
*/
editing_item
.
qty
=
qty
;
edition_input
.
val
(
qty
);
set_focus
=
false
;
}
// If item is reprocessed, set input with value
if
(
editing_origin
==
'processed'
)
{
edition_input
.
val
(
editing_item
.
qty
);
}
if
(
set_focus
===
true
)
edition_input
.
focus
();
edition_input
.
focus
();
// Make edition area blink when edition button clicked
container_edition
.
classList
.
add
(
'blink_me'
);
...
...
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