Commit 7dfbbc26 by Etienne Freiss

fix bug impossible to change shift

parent 33dd5142
Pipeline #1847 failed with stage
in 1 minute 24 seconds
...@@ -214,8 +214,12 @@ function init_shifts_list() { ...@@ -214,8 +214,12 @@ function init_shifts_list() {
openModal( openModal(
modal_template.html(), modal_template.html(),
() => { () => {
modal.find(".btn-modal-ok").show();
}, },
"Valider" "Valider", true, true,
()=>{
modal.find(".btn-modal-ok").show();
}
); );
modal.find('#shift_partner').on("click", function() { modal.find('#shift_partner').on("click", function() {
...@@ -258,11 +262,13 @@ function affect_shift(partner, shift_id) { ...@@ -258,11 +262,13 @@ function affect_shift(partner, shift_id) {
load_partner_shifts(partner_data.concerned_partner_id) load_partner_shifts(partner_data.concerned_partner_id)
.then(() => { .then(() => {
init_shifts_list(); init_shifts_list();
modal.find(".btn-modal-ok").show();
closeModal(); closeModal();
}); });
}, },
error: function() { error: function() {
init_shifts_list(); init_shifts_list();
modal.find(".btn-modal-ok").show();
closeModal(); closeModal();
alert(`Une erreur est survenue. ` + alert(`Une erreur est survenue. ` +
......
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