diff --git a/js/interface_common.js b/js/interface_common.js index 51ef9a2..7f29eae 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -338,9 +338,16 @@ function confirmPopup(req) { function alertPopup(req) { if (!req) return; - if (!req.txtConfirm) - req.txtConfirm = polyglot.t('btn_ok'); - req.removeCancel = true; + 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); }