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
v1.18.x
Manuel Valle 9 years ago
parent a133374c0b
commit a60e3c63cf

@ -111,6 +111,11 @@ if ('undefined' !== typeof window) {
prompt = bootbox.prompt,
confirm = bootbox.confirm;
var translator;
require(['translator'], function(_translator) {
translator = _translator;
});
function translate(modal) {
var header = modal.find('.modal-header'),
footer = modal.find('.modal-footer');

Loading…
Cancel
Save