Commit ff605114 by NGUYEN HOANG SON

fix timeout callback when close confirm modal

parent 898bc7e7
...@@ -98,7 +98,10 @@ COMMON.showConfirmModal = function (data, confirmCallback) { ...@@ -98,7 +98,10 @@ COMMON.showConfirmModal = function (data, confirmCallback) {
$('#confirm-modal #confirmYes').click(function() { $('#confirm-modal #confirmYes').click(function() {
$('#confirm-modal .close').click(); $('#confirm-modal .close').click();
if (confirmCallback) { if (confirmCallback) {
//timeout for animation modal close
setTimeout(function() {
confirmCallback(); confirmCallback();
}, 500);
} }
}); });
} else { } else {
......
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