mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 15:05:46 +01:00
only need to translate bootbox's footer
This commit is contained in:
@@ -136,8 +136,9 @@ app.cacheBuster = null;
|
|||||||
confirm = bootbox.confirm;
|
confirm = bootbox.confirm;
|
||||||
|
|
||||||
function translate(modal) {
|
function translate(modal) {
|
||||||
translator.translate(modal.html(), function(html) {
|
var footer = modal.find('.modal-footer');
|
||||||
modal.html(html);
|
translator.translate(footer.html(), function(html) {
|
||||||
|
footer.html(html);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user