var currentSorterToggle = null;
var query = "";
var currentlyMarkedRows = new Object();
-var markedRowId = null;
+var markedRowIndex = null;
var mouseDownEvent = null;
var exitedMouseDown = false;
var trTemplate = new Array(11);
trTemplate[0] = "<tr id=\"";
trTemplate[2] = "\" citadel:dropenabled=\"dropenabled\" class=\"";
-trTemplate[4] = "\" citadel:dndelement=\"summaryViewDragAndDropHandler\" citadel:msgID=\"";
+trTemplate[4] = "\" citadel:dndelement=\"summaryViewDragAndDropHandler\" citadel:msgid=\"";
trTemplate[6] = "\" citadel:ctdlrowid=\"";
trTemplate[8] = "\"><td class=\"col1\">";
trTemplate[10] = "</td><td class=\"col2\">";
}
trTemplate[3] = className;
trTemplate[5] = currentRow[0];
- trTemplate[6] = x;
+ trTemplate[7] = x;
trTemplate[9] = currentRow[1];
trTemplate[11] = currentRow[2];
trTemplate[13] = currentRow[4];
// If the ctrl key modifier wasn't used, unmark all rows and load the message
if (!event.shiftKey && !event.ctrlKey && !event.altKey) {
unmarkAllRows();
- markedRowId = parent.getAttribute("citadel:ctdlrowid");
+ markedRowIndex = parent.rowIndex;
document.getElementById("preview_pane").innerHTML = "";
new Ajax.Updater('preview_pane', 'msg/'+msgId, {method: 'get'});
markRow(parent);
// If the shift key modifier is used, mark a range...
} else if (event.button != 2 && event.shiftKey) {
markRow(parent);
- var rowId = parent.ctdlRowId;
+ var rowIndex = parent.rowIndex;
var startMarkingFrom = 0;
var finish = 0;
- if (rowId > markedRowId) {
- startMarkingFrom = markedRowId+1;
- finish = rowId;
- } else if (rowId < markedRowId) {
- startMarkingFrom = rowId+1;
- finish = markedRowId;
- }
+ if (rowIndex > markedRowIndex) {
+ startMarkingFrom = markedRowIndex+1;
+ finish = rowIndex;
+ } else if (rowIndex < markedRowIndex) {
+ startMarkingFrom = rowIndex+1;
+ finish = markedRowIndex;
+ }
+ WCLog('startMarkingFrom=' + startMarkingFrom + ', finish=' + finish);
for(var x = startMarkingFrom; x<finish; x++) {
- WCLog("Marking row "+x);
- markRow(rowArray[x]);
+ WCLog("Marking row " + x);
+ markRow(parent.parentNode.rows[x]);
}
// If the ctrl key modifier is used, toggle one message
} else if (event.button != 2 && (event.ctrlKey || event.altKey)) {