Browse Source

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

readme-update
Simon Grim 9 years ago
parent
commit
4466c72814
  1. 6
      js/interface_common.js

6
js/interface_common.js

@ -144,9 +144,13 @@ function resumeModal(event) { @@ -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',

Loading…
Cancel
Save