mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-13 20:23:04 +02:00
Merge remote-tracking branch 'origin/master' into sortable-menu
This commit is contained in:
@@ -25,7 +25,7 @@ define('composer/resize', function() {
|
||||
}
|
||||
}
|
||||
|
||||
if (env === 'sm' || env === 'xs') {
|
||||
if (env === 'sm' || env === 'xs' || window.innerHeight < 480) {
|
||||
app.toggleNavbar(false);
|
||||
postContainer.css('height', $(window).height());
|
||||
}
|
||||
|
||||
@@ -22,7 +22,9 @@ define('notifications', ['sounds'], function(sound) {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
var notifs = data.unread.concat(data.read);
|
||||
var notifs = data.unread.concat(data.read).sort(function(a, b) {
|
||||
return parseInt(a.datetime, 10) > parseInt(b.datetime, 10) ? -1 : 1;
|
||||
});
|
||||
|
||||
translator.toggleTimeagoShorthand();
|
||||
for(var i=0; i<notifs.length; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user