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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
shelf_inventory.js
shelfs/static/js/shelf_inventory.js
+2
-4
No files found.
shelfs/static/js/shelf_inventory.js
View file @
50f4f29a
...
@@ -285,8 +285,7 @@ function edit_event(clicked) {
...
@@ -285,8 +285,7 @@ function edit_event(clicked) {
* If qty is not null, it comes from barcode reading result
* If qty is not null, it comes from barcode reading result
* */
* */
function
setLineEdition
(
item
,
qty
)
{
function
setLineEdition
(
item
,
qty
)
{
var
edition_input
=
$
(
'#edition_input'
),
var
edition_input
=
$
(
'#edition_input'
);
set_focus
=
true
;
editing_item
=
item
;
editing_item
=
item
;
$
(
'#product_name'
).
text
(
editing_item
.
name
);
$
(
'#product_name'
).
text
(
editing_item
.
name
);
...
@@ -308,13 +307,12 @@ function setLineEdition(item, qty) {
...
@@ -308,13 +307,12 @@ function setLineEdition(item, qty) {
*/
*/
editing_item
.
qty
=
qty
;
editing_item
.
qty
=
qty
;
edition_input
.
val
(
qty
);
edition_input
.
val
(
qty
);
set_focus
=
false
;
}
}
// If item is reprocessed, set input with value
// If item is reprocessed, set input with value
if
(
editing_origin
==
'processed'
)
{
if
(
editing_origin
==
'processed'
)
{
edition_input
.
val
(
editing_item
.
qty
);
edition_input
.
val
(
editing_item
.
qty
);
}
}
if
(
set_focus
===
true
)
edition_input
.
focus
();
edition_input
.
focus
();
// Make edition area blink when edition button clicked
// Make edition area blink when edition button clicked
...
...
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