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
2e964eab
Commit
2e964eab
authored
Jun 10, 2021
by
François C.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent successive coop. num. input search to be considered as barcode input
parent
e34556c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
members.js
members/static/js/members.js
+2
-2
No files found.
members/static/js/members.js
View file @
2e964eab
...
@@ -61,6 +61,7 @@ var html_elts = {
...
@@ -61,6 +61,7 @@ var html_elts = {
next_shifts
:
$
(
'#next_shifts'
)
next_shifts
:
$
(
'#next_shifts'
)
};
};
var
chars
=
[];
//input chars buffer
function
fill_member_slide
(
member
)
{
function
fill_member_slide
(
member
)
{
no_pict_msg
.
hide
();
no_pict_msg
.
hide
();
...
@@ -160,6 +161,7 @@ function canSearch() {
...
@@ -160,6 +161,7 @@ function canSearch() {
}
}
function
search_member
(
force_search
=
false
)
{
function
search_member
(
force_search
=
false
)
{
chars
=
[];
// to prevent false "as barcode-reader" input
if
(
canSearch
()
||
force_search
)
{
if
(
canSearch
()
||
force_search
)
{
html_elts
.
member_slide
.
hide
();
html_elts
.
member_slide
.
hide
();
...
@@ -666,8 +668,6 @@ html_elts.image_medium.on('click', function() {
...
@@ -666,8 +668,6 @@ html_elts.image_medium.on('click', function() {
});
});
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
chars
=
[];
var
shopping_entry_btn
=
$
(
'a[data-next="shopping_entry"]'
);
var
shopping_entry_btn
=
$
(
'a[data-next="shopping_entry"]'
);
shopping_entry_btn
.
on
(
'click'
,
function
()
{
shopping_entry_btn
.
on
(
'click'
,
function
()
{
...
...
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