mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-09 10:15:44 +02:00
fix ordering by oldest first
This commit is contained in:
parent
03e5aceb98
commit
bad22a2d3d
js
@ -170,9 +170,9 @@
|
||||
});
|
||||
this.orderBy = (function() {
|
||||
if (SettingsResource.get('oldestFirst')) {
|
||||
return '-id';
|
||||
} else {
|
||||
return 'id';
|
||||
} else {
|
||||
return '-id';
|
||||
}
|
||||
});
|
||||
this.isCompactView = (function() {
|
||||
@ -1028,7 +1028,7 @@
|
||||
}
|
||||
}
|
||||
}));
|
||||
}(window, document, jQuery));
|
||||
}(window, document, $));
|
||||
var call = Function.prototype.call.bind(Function.prototype.call);
|
||||
var hasOwn = Object.prototype.hasOwnProperty;
|
||||
window.items = function(obj) {
|
||||
|
2
js/build/app.min.js
vendored
2
js/build/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -61,9 +61,9 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data,
|
||||
|
||||
this.orderBy = () => {
|
||||
if (SettingsResource.get('oldestFirst')) {
|
||||
return '-id';
|
||||
} else {
|
||||
return 'id';
|
||||
} else {
|
||||
return '-id';
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -168,4 +168,4 @@
|
||||
}
|
||||
});
|
||||
|
||||
}(window, document, jQuery));
|
||||
}(window, document, $));
|
Loading…
Reference in New Issue
Block a user