Browse Source

make alertPopup() available to use on events

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

13
js/interface_common.js

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

Loading…
Cancel
Save