Commit e097f04a by Yvon

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
...@@ -160,7 +160,7 @@ function display_makeups_members() { ...@@ -160,7 +160,7 @@ function display_makeups_members() {
update_members_makeups( update_members_makeups(
[member_id], [member_id],
"decrement", "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", "Confirmer",
...@@ -185,7 +185,7 @@ function display_makeups_members() { ...@@ -185,7 +185,7 @@ function display_makeups_members() {
update_members_makeups( update_members_makeups(
[member_id], [member_id],
"increment", "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", "Confirmer",
...@@ -219,7 +219,7 @@ function display_makeups_members() { ...@@ -219,7 +219,7 @@ function display_makeups_members() {
update_members_makeups( update_members_makeups(
selected_rows, selected_rows,
"decrement", "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", "Confirmer",
...@@ -353,15 +353,17 @@ function display_possible_members() { ...@@ -353,15 +353,17 @@ function display_possible_members() {
display_ftop_points: member.display_ftop_points display_ftop_points: member.display_ftop_points
}); });
let modal_template = $("#modal_incr_makeup_counter");
modal_template.find(".member_name").text(member.name);
openModal( openModal(
`Ajouter un rattrapage à ${member.name} ? modal_template.html(),
<br><br><label>Explication : </label><input class="" type="text" id="incr-explanation">
<br><br><label>Signature : </label><input class="" type="text" id="incr-signature">`,
() => { () => {
update_members_makeups( update_members_makeups(
[member.id], [member.id],
"increment", "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 = []; members_search_results = [];
$('#search_member_input').val(''); $('#search_member_input').val('');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment