Browse Source

make confirmPopup() to be able to polyglot .txtMessage at execution

readme-update
Simon Grim 9 years ago
parent
commit
d0098f9f3e
  1. 5
      js/interface_common.js

5
js/interface_common.js

@ -285,8 +285,11 @@ function confirmPopup(req) { @@ -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)

Loading…
Cancel
Save