Skip to content

Node.js based forum software built for the modern web

only need to translate bootbox's footer

psychobunny7210ffdde9f8
diff --git a/public/src/app.js b/public/src/app.js
index 9f6bb7531c..35ba560613 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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);
});
}