Commit 7dfb2bd9 by François C.

Change modal click waiting

parent 574f0397
Pipeline #2056 passed with stage
in 1 minute 28 seconds
......@@ -229,6 +229,8 @@ function confirmDeletion(childId) {
modalContent = modalContent.html();
openModal(modalContent, () => {
if (is_time_to('delete_pair')) {
closeModal();
openModal();
delete_pair(childId)
}
}, 'Valider', false);
......@@ -394,6 +396,8 @@ $(document).ready(function() {
modalContent = modalContent.html();
openModal(modalContent, () => {
if (is_time_to('create_pair')) {
closeModal();
openModal(); // Show gears
create_pair(payload)
}
}, 'Valider', false);
......
......@@ -240,11 +240,14 @@ function openModal() {
// 4th argument: if set and false, validate button doesn't close the modal
if (typeof (arguments[3]) == "undefined" || arguments[3] != false)
btn_ok.on('click', closeModal);
else
/*
else {
btn_ok.on('click', function() {
$(this).addClass("loading");
$(this).removeClass("btn--success");
})
}
*/
btns.append(btn_ok);
......
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