mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 07:50:37 +01:00
fixes #5228
This commit is contained in:
@@ -22,6 +22,7 @@ app.cacheBuster = null;
|
|||||||
|
|
||||||
app.load = function () {
|
app.load = function () {
|
||||||
app.loadProgressiveStylesheet();
|
app.loadProgressiveStylesheet();
|
||||||
|
overrides.overrideTimeago();
|
||||||
|
|
||||||
var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search + window.location.hash);
|
var url = ajaxify.start(window.location.pathname.slice(1) + window.location.search + window.location.hash);
|
||||||
ajaxify.updateHistory(url, true);
|
ajaxify.updateHistory(url, true);
|
||||||
@@ -52,7 +53,6 @@ app.cacheBuster = null;
|
|||||||
});
|
});
|
||||||
|
|
||||||
overrides.overrideBootbox();
|
overrides.overrideBootbox();
|
||||||
overrides.overrideTimeago();
|
|
||||||
createHeaderTooltips();
|
createHeaderTooltips();
|
||||||
app.showEmailConfirmWarning();
|
app.showEmailConfirmWarning();
|
||||||
app.showCookieWarning();
|
app.showCookieWarning();
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ if ('undefined' !== typeof window) {
|
|||||||
els.each(function () {
|
els.each(function () {
|
||||||
iso = this.getAttribute('title');
|
iso = this.getAttribute('title');
|
||||||
this.setAttribute('datetime', iso);
|
this.setAttribute('datetime', iso);
|
||||||
this.setAttribute('title', new Date(iso).toLocaleString(config.userLang.replace('_', '-'), options));
|
$(this).text(new Date(iso).toLocaleString(config.userLang.replace('_', '-'), options));
|
||||||
});
|
});
|
||||||
|
|
||||||
timeagoFn.apply(this, arguments);
|
timeagoFn.apply(this, arguments);
|
||||||
|
|||||||
Reference in New Issue
Block a user