|
|
|
@ -146,19 +146,19 @@ app.cacheBuster = null;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function overrideTimeago() {
|
|
|
|
@ -563,14 +563,9 @@ app.cacheBuster = null;
|
|
|
|
|
app.showEmailConfirmWarning();
|
|
|
|
|
|
|
|
|
|
socket.removeAllListeners('event:nodebb.ready');
|
|
|
|
|
socket.on('event:nodebb.ready', function(cacheBusters) {
|
|
|
|
|
if (
|
|
|
|
|
!app.cacheBusters ||
|
|
|
|
|
app.cacheBusters.general !== cacheBusters.general ||
|
|
|
|
|
app.cacheBusters.css !== cacheBusters.css ||
|
|
|
|
|
app.cacheBusters.js !== cacheBusters.js
|
|
|
|
|
) {
|
|
|
|
|
app.cacheBusters = cacheBusters;
|
|
|
|
|
socket.on('event:nodebb.ready', function(data) {
|
|
|
|
|
if (!app.cacheBusters || app.cacheBusters['cache-buster'] !== data['cache-buster']) {
|
|
|
|
|
app.cacheBusters = data;
|
|
|
|
|
|
|
|
|
|
app.alert({
|
|
|
|
|
alert_id: 'forum_updated',
|
|
|
|
|