Commit a38922fc authored by Mingsong Hu's avatar Mingsong Hu

Fix confirmation dialog bug

parent 95cdd405
......@@ -63,7 +63,10 @@
'@event_end': strEnd
});
if (!confirm(msg)) {
if (
drupalSettings.updateConfirm === 1 &&
!confirm(msg)
) {
info.revert();
}
else {
......@@ -187,7 +190,10 @@
'@event_end': strEnd
});
if (!confirm(msg)) {
if (
drupalSettings.updateConfirm === 1 &&
!confirm(msg)
) {
info.revert();
}
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