mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-12 13:31:14 +00:00
make confirmPopup() to be able to polyglot .txtMessage at execution
This commit is contained in:
parent
fae9122cf7
commit
d0098f9f3e
@ -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…
x
Reference in New Issue
Block a user