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
3408c38b
Commit
3408c38b
authored
Nov 19, 2021
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-enable shift buttons after selecting makeup
parent
9305e1ab
Pipeline
#1480
passed with stage
in 1 minute 30 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
members-space-shifts-exchange.js
members_space/static/js/members-space-shifts-exchange.js
+1
-1
views.py
shifts/views.py
+1
-1
No files found.
members_space/static/js/members-space-shifts-exchange.js
View file @
3408c38b
...
...
@@ -136,7 +136,7 @@ function init_shifts_list() {
}
else
{
shift_line_template
.
find
(
".selectable_shift_line"
).
removeClass
(
"btn"
);
shift_line_template
.
find
(
".selectable_shift_line"
).
addClass
(
"btn--primary"
);
shift_line_template
.
find
(
".checkbox"
).
removeProp
(
"disabled"
);
shift_line_template
.
find
(
".checkbox"
).
prop
(
"disabled"
,
false
);
shift_line_template
.
find
(
".checkbox"
).
prop
(
"value"
,
shift
.
id
);
}
...
...
shifts/views.py
View file @
3408c38b
...
...
@@ -124,7 +124,7 @@ def get_list_shift_calendar(request, partner_id):
if
company_code
!=
"lacagette"
and
len
(
value
[
'address_id'
])
==
2
and
','
in
value
[
'address_id'
][
1
]:
title_prefix
=
str
(
value
[
'address_id'
][
1
])
.
split
(
","
)[
1
]
+
" --"
elif
company_code
==
"lacagette"
:
title_prefix
=
" -
-
"
title_prefix
=
" - "
event
[
"title"
]
=
title_prefix
+
str
(
value
[
'seats_reserved'
])
+
"/"
+
str
(
smax
)
...
...
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