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

This commit is contained in:
Simon Grim 2016-02-15 15:18:06 +05:00
parent fae9122cf7
commit d0098f9f3e

View File

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