From 4466c7281466254f13206ee4ae965d8876688306 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Thu, 19 Nov 2015 23:29:24 +0500 Subject: [PATCH] make confirmPopup() to be able to fetch req object from event.data --- js/interface_common.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/interface_common.js b/js/interface_common.js index 68d89b0..f4a0a99 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -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',