-/** Webcit Summary View v2
- All comments, flowers and death threats to Mathew McBride
- <matt@mcbridematt.dhs.org> / <matt@comalies>
-*/
+/**
+ * Webcit Summary View v2
+ * All comments, flowers and death threats to Mathew McBride
+ * <matt@mcbridematt.dhs.org> / <matt@comalies>
+ * Copyright 2009 The Citadel Team
+ * Licensed under the GPL V3
+ */
document.observe("dom:loaded", createMessageView);
var message_view = null;
currentSorterToggle = toggles[sortmode];
}
if (!is_safe_mode) {
- resortAndDisplay(sortRowsByDateDescending);
+ resortAndDisplay(currentSortMode[1]);
} else {
setupPageSelector();
resortAndDisplay(null);
function sortRowsBySubjectDescending(a, b) {
var subjectOne = getTextContent(a.getElementsByTagName("td")[0]).toLowerCase();
var subjectTwo = getTextContent(b.getElementsByTagName("td")[0]).toLowerCase();
- return strcmp(subjectOne, subjectTwo);
+ return strcmp(subjectTwo, subjectOne);
}
function sortRowsByFromAscending(a, b) {
function sortRowsByFromDescending(a, b) {
var fromOne = getTextContent(a.getElementsByTagName("td")[1]).toLowerCase();
var fromTwo = getTextContent(b.getElementsByTagName("td")[1]).toLowerCase();
- return strcmp(fromOne, fromTwo);
+ return strcmp(fromTwo, fromOne);
}
function CtdlMessageListClick(evt) {
unmarkAllRows();
markedRowId = parent.ctdlRowId;
document.getElementById("preview_pane").innerHTML = "";
- new Ajax.Updater('preview_pane', 'msg/'+msgId+'?Mail=1', {method: 'get'});
+ new Ajax.Updater('preview_pane', 'msg/'+msgId, {method: 'get'});
markRow(parent);
new Ajax.Request('ajax_servcmd', {
method: 'post',