mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
Update overrides.js
Inside **translate** function, **translator** refers to *global* genereting warnings. Added a **translator** variable refering to **translator** module. This solves some problems using *bootbox* in my plugins and widgets
This commit is contained in:
@@ -110,6 +110,11 @@ if ('undefined' !== typeof window) {
|
|||||||
var dialog = bootbox.dialog,
|
var dialog = bootbox.dialog,
|
||||||
prompt = bootbox.prompt,
|
prompt = bootbox.prompt,
|
||||||
confirm = bootbox.confirm;
|
confirm = bootbox.confirm;
|
||||||
|
|
||||||
|
var translator;
|
||||||
|
require(['translator'], function(_translator) {
|
||||||
|
translator = _translator;
|
||||||
|
});
|
||||||
|
|
||||||
function translate(modal) {
|
function translate(modal) {
|
||||||
var header = modal.find('.modal-header'),
|
var header = modal.find('.modal-header'),
|
||||||
|
|||||||
Reference in New Issue
Block a user