From: Art Cancro Date: Fri, 1 Sep 2006 22:00:59 +0000 (+0000) Subject: Added group select to summary view. X-Git-Tag: v7.86~3954 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=ab9e8c25f5c324bb8462210a636824a76f6af26f;p=citadel.git Added group select to summary view. --- diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js index f328bdf81..28f3db80e 100644 --- a/webcit/static/wclib.js +++ b/webcit/static/wclib.js @@ -119,6 +119,7 @@ function switch_to_menu_buttons() { // var CtdlNumMsgsSelected = 0; var CtdlMsgsSelected = new Array(); +var CtdlLastMsgnumSelected = 0; // This gets called when you single click on a message in the mailbox view. // We know that the element id of the table row will be the letter 'm' plus the message number. @@ -128,9 +129,10 @@ function CtdlSingleClickMsg(evt, msgnum) { // Clear the preview pane until we load the new message $('preview_pane').innerHTML = ''; - // De-select any messages that were already selected, *unless* the Ctrl key - // is being pressed, in which case the user wants multi select. - if (!evt.ctrlKey) { + // De-select any messages that were already selected, *unless* the Ctrl or + // Shift key is being pressed, in which case the user wants multi select + // or group select. + if ( (!evt.ctrlKey) && (!evt.shiftKey) ) { if (CtdlNumMsgsSelected > 0) { for (i=0; i 0) { + for (i=0; i