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