Browse Source

make alertPopup() available to use on events

readme-update
Simon Grim 9 years ago
parent
commit
fae9122cf7
  1. 7
      js/interface_common.js

7
js/interface_common.js

@ -338,9 +338,16 @@ function confirmPopup(req) { @@ -338,9 +338,16 @@ function confirmPopup(req) {
function alertPopup(req) {
if (!req) return;
if (typeof req.stopPropagation === 'function') {
if (typeof req.data !== 'object') return;
if (!req.data.txtConfirm)
req.data.txtConfirm = polyglot.t('btn_ok');
req.data.removeCancel = true;
} else {
if (!req.txtConfirm)
req.txtConfirm = polyglot.t('btn_ok');
req.removeCancel = true;
}
confirmPopup(req);
}

Loading…
Cancel
Save