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
e097f04a
Commit
e097f04a
authored
Oct 13, 2022
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverse pas d'explication and auteur inconnu and properly get rid of html in js where forgot
parent
d5b889ca
Pipeline
#2439
passed with stage
in 1 minute 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
manage_makeups.js
members/static/js/admin/manage_makeups.js
+9
-7
No files found.
members/static/js/admin/manage_makeups.js
View file @
e097f04a
...
...
@@ -160,7 +160,7 @@ function display_makeups_members() {
update_members_makeups
(
[
member_id
],
"decrement"
,
(
$
(
"#decr-signature"
)[
0
].
value
||
"
pas d'explication"
)
+
' : '
+
(
$
(
"#decr-explanation"
)[
0
].
value
||
"auteur inconnu
"
)
(
$
(
"#decr-signature"
)[
0
].
value
||
"
auteur inconnu"
)
+
' : '
+
(
$
(
"#decr-explanation"
)[
0
].
value
||
"pas d'explication
"
)
);
},
"Confirmer"
,
...
...
@@ -185,7 +185,7 @@ function display_makeups_members() {
update_members_makeups
(
[
member_id
],
"increment"
,
(
$
(
"#incr-signature"
)[
0
].
value
||
"
pas d'explication"
)
+
' : '
+
(
$
(
"#incr-explanation"
)[
0
].
value
||
"auteur inconnu
"
)
(
$
(
"#incr-signature"
)[
0
].
value
||
"
auteur inconnu"
)
+
' : '
+
(
$
(
"#incr-explanation"
)[
0
].
value
||
"pas d'explication
"
)
);
},
"Confirmer"
,
...
...
@@ -219,7 +219,7 @@ function display_makeups_members() {
update_members_makeups
(
selected_rows
,
"decrement"
,
(
$
(
"#decr-signature-selected"
)[
0
].
value
||
"
pas d'explication"
)
+
' : '
+
(
$
(
"#decr-explanation-selected"
)[
0
].
value
||
"auteur inconnu
"
)
(
$
(
"#decr-signature-selected"
)[
0
].
value
||
"
auteur inconnu"
)
+
' : '
+
(
$
(
"#decr-explanation-selected"
)[
0
].
value
||
"pas d'explication
"
)
);
},
"Confirmer"
,
...
...
@@ -353,15 +353,17 @@ function display_possible_members() {
display_ftop_points
:
member
.
display_ftop_points
});
let
modal_template
=
$
(
"#modal_incr_makeup_counter"
);
modal_template
.
find
(
".member_name"
).
text
(
member
.
name
);
openModal
(
`Ajouter un rattrapage à
${
member
.
name
}
?
<br><br><label>Explication : </label><input class="" type="text" id="incr-explanation">
<br><br><label>Signature : </label><input class="" type="text" id="incr-signature">`
,
modal_template
.
html
(),
()
=>
{
update_members_makeups
(
[
member
.
id
],
"increment"
,
$
(
"#incr-signature"
)[
0
].
value
+
' : '
+
$
(
"#incr-explanation"
)[
0
].
value
(
$
(
"#incr-signature"
)[
0
].
value
||
"auteur inconnu"
)
+
' : '
+
(
$
(
"#incr-explanation"
)[
0
].
value
||
"pas d'explication"
)
);
members_search_results
=
[];
$
(
'#search_member_input'
).
val
(
''
);
...
...
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