mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #3457
This commit is contained in:
@@ -23,5 +23,9 @@
|
|||||||
"composer.user_said": "%1 said:",
|
"composer.user_said": "%1 said:",
|
||||||
"composer.discard": "Are you sure you wish to discard this post?",
|
"composer.discard": "Are you sure you wish to discard this post?",
|
||||||
"composer.submit_and_lock": "Submit and Lock",
|
"composer.submit_and_lock": "Submit and Lock",
|
||||||
"composer.toggle_dropdown": "Toggle Dropdown"
|
"composer.toggle_dropdown": "Toggle Dropdown",
|
||||||
|
|
||||||
|
"bootbox.ok": "OK",
|
||||||
|
"bootbox.cancel": "Cancel",
|
||||||
|
"bootbox.confirm": "Confirm"
|
||||||
}
|
}
|
||||||
@@ -130,6 +130,36 @@ app.cacheBuster = null;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function overrideBootbox() {
|
||||||
|
var dialog = bootbox.dialog,
|
||||||
|
prompt = bootbox.prompt,
|
||||||
|
confirm = bootbox.confirm;
|
||||||
|
|
||||||
|
function translate(modal) {
|
||||||
|
translator.translate(modal.html(), function(html) {
|
||||||
|
modal.html(html);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
bootbox.dialog = function() {
|
||||||
|
var modal = $(dialog.apply(this, arguments)[0]);
|
||||||
|
translate(modal);
|
||||||
|
return modal;
|
||||||
|
}
|
||||||
|
|
||||||
|
bootbox.prompt = function() {
|
||||||
|
var modal = $(prompt.apply(this, arguments)[0]);
|
||||||
|
translate(modal);
|
||||||
|
return modal;
|
||||||
|
}
|
||||||
|
|
||||||
|
bootbox.confirm = function() {
|
||||||
|
var modal = $(confirm.apply(this, arguments)[0]);
|
||||||
|
translate(modal);
|
||||||
|
return modal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
app.logout = function() {
|
app.logout = function() {
|
||||||
require(['csrf'], function(csrf) {
|
require(['csrf'], function(csrf) {
|
||||||
$.ajax(RELATIVE_PATH + '/logout', {
|
$.ajax(RELATIVE_PATH + '/logout', {
|
||||||
@@ -528,6 +558,7 @@ app.cacheBuster = null;
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
overrideBootbox();
|
||||||
createHeaderTooltips();
|
createHeaderTooltips();
|
||||||
app.showEmailConfirmWarning();
|
app.showEmailConfirmWarning();
|
||||||
|
|
||||||
|
|||||||
2
public/vendor/bootbox/bootbox.min.js
vendored
2
public/vendor/bootbox/bootbox.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user