Confirmation not waiting when deleting sections
3 posts by 3 authors in: Forums > CMS Builder
Last Post: 4 hours ago (RSS)
I've noticed an issue on two installations of CMS Builder v3.84 that doesn't happen on an installation of CMSB v3.82.
If I click to 'erase' a section from CMS Setup > Database, the confirmation window appears very briefly but the section is then deleted and the message disappears so the table is deleted without confirming.
Let me know if you need any more information.
Thanks, Paul.
By Dave - 4 hours ago
Hi All,
Thanks for the report! We were able to reproduce this locally and track it down, and we'll have this fixed in the next release.
If you'd like to patch it now, edit cmsb/lib/data-attr-handlers.js and search for "element.blur()"
And replace this:
if (!confirm(message)) {
e.preventDefault();
e.stopImmediatePropagation();
element.blur();
}
}
});
With this (adding ", true" before the final brace):
if (!confirm(message)) {
e.preventDefault();
e.stopImmediatePropagation();
element.blur();
}
}
}, true);
That makes the confirmation dialog run before anything else, so Cancel works again.
Hope that helps, and thanks so much for the bug report and confirmation! Let me know if you any other questions.
interactivetools.com