From d0098f9f3e43d7f9d2f9ad19e065acfcd592dfeb Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Mon, 15 Feb 2016 15:18:06 +0500 Subject: [PATCH] make confirmPopup() to be able to polyglot .txtMessage at execution --- js/interface_common.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/interface_common.js b/js/interface_common.js index 7f29eae..911a660 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -285,8 +285,11 @@ function confirmPopup(req) { title: req.txtTitle }); - if (req.txtMessage) + if (req.txtMessage) { + if (req.txtMessage.polyglot) + req.txtMessage = polyglot.t(req.txtMessage.polyglot, req.txtMessage.polyglotReq); modal.content.find('.message').html(htmlFormatMsg(req.txtMessage, {markout: 'apply'}).html); + } var btn = modal.content.find('.confirm'); if (req.removeConfirm)