mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user