|
|
@ -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); |
|
|
|
} |
|
|
|
} |
|
|
|