projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa1ddf7
)
INBOX _always_ appears at the top.
author
Art Cancro
<ajc@citadel.org>
Thu, 26 Jan 2023 22:03:15 +0000
(17:03 -0500)
committer
Art Cancro
<ajc@citadel.org>
Thu, 26 Jan 2023 22:03:15 +0000
(17:03 -0500)
webcit-ng/static/js/mail_folder_list.js
patch
|
blob
|
history
diff --git
a/webcit-ng/static/js/mail_folder_list.js
b/webcit-ng/static/js/mail_folder_list.js
index ce11fbacd64aa7ee48dc42437c8ac3a78dc81289..02007f457611badc2d8f4b2211e0b311273d6b37 100644
(file)
--- a/
webcit-ng/static/js/mail_folder_list.js
+++ b/
webcit-ng/static/js/mail_folder_list.js
@@
-38,6
+38,8
@@
function render_mail_folder_list(roomlist_json) {
roomlist_json.sort(function(a, b) {
if (a.floor > b.floor) return 1;
if (a.floor < b.floor) return -1;
+ if (a.name == "Mail") return -1;
+ if (b.name == "Mail") return 1;
if (a.rorder > b.rorder) return 1;
if (a.rorder < b.rorder) return -1;
return 0;