make confirmPopup() to be able to fetch req object from event.data

This commit is contained in:
Simon Grim 2015-11-19 23:29:24 +05:00
parent 07beae2a42
commit 4466c72814

View File

@ -144,9 +144,13 @@ function resumeModal(event) {
}
function confirmPopup(event, req) {
if (event && event.stopPropagation)
if (event && event.stopPropagation) {
event.stopPropagation();
if (!req && event.data)
req = event.data;
}
var modal = openModal({
classBase: '.prompt-wrapper',
classAdd: 'confirm-popup',