mirror of https://github.com/zulip/zulip.git
attachments ui: Initialize table sorted by Date uploaded column.
Previously we only added the active class to the Date uploaded column, thinking it was already sorted by upload date by default. However, it wasn't, so now we explicitly make a call to sort it by upload date to fix an issue with broken sorting. Fixes #10518.
This commit is contained in:
parent
95fc86442e
commit
b27201056c
|
@ -56,6 +56,8 @@ function render_attachments_ui() {
|
||||||
parent_container: $('#attachments-settings').expectOne(),
|
parent_container: $('#attachments-settings').expectOne(),
|
||||||
}).init();
|
}).init();
|
||||||
|
|
||||||
|
list.sort('numeric', 'create_time');
|
||||||
|
|
||||||
list.add_sort_function("mentioned-in", function (a, b) {
|
list.add_sort_function("mentioned-in", function (a, b) {
|
||||||
var a_m = a.messages[0];
|
var a_m = a.messages[0];
|
||||||
var b_m = b.messages[0];
|
var b_m = b.messages[0];
|
||||||
|
|
Loading…
Reference in New Issue