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
77c638b6
Commit
77c638b6
authored
Apr 19, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inscription cant select shift
parent
c66994cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
manage_regular_shifts.js
members/static/js/admin/manage_regular_shifts.js
+1
-1
common.js
outils/static/js/common.js
+1
-1
No files found.
members/static/js/admin/manage_regular_shifts.js
View file @
77c638b6
...
...
@@ -150,7 +150,7 @@ function display_member_info() {
$
(
".shift"
).
off
(
"click"
);
$
(
".shift"
).
on
(
"click"
,
function
()
{
// Subscribe to shift template
let
shift_template_id
=
select_shift_among_compact
(
this
,
false
);
// method from common.js
let
shift_template_id
=
select_shift_among_compact
(
null
,
this
,
false
);
// method from common.js
let
shift_template_data
=
shift_templates
[
shift_template_id
].
data
;
// shift_templates: var from common.js
let
shift_template_name
=
get_shift_name
(
shift_template_data
);
...
...
outils/static/js/common.js
View file @
77c638b6
...
...
@@ -99,7 +99,7 @@ function single_shift_click() {
}
}
function
select_shift_among_compact
(
clicked_item
=
null
,
subscribe
=
true
)
{
function
select_shift_among_compact
(
event
,
clicked_item
=
null
,
subscribe
=
true
)
{
var
clicked
=
clicked_item
===
null
?
$
(
this
)
:
$
(
clicked_item
);
var
day
=
clicked
.
closest
(
'td'
).
attr
(
'class'
);
var
hour
=
clicked
.
closest
(
'tr'
).
data
(
'begin'
);
...
...
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