This commit is contained in:
barisusakli
2015-09-11 16:18:32 -04:00
parent 160cf93802
commit a64cbbc6df
7 changed files with 15 additions and 54 deletions

View File

@@ -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',