summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-10-19 12:24:04 +0000
committersvncommit <devs@roundcube.net>2007-10-19 12:24:04 +0000
commit68b6a9e8e49fcd17b5e71cb6c0162fdbd39b44f3 (patch)
tree6c731eb08fd0b85d45c99d44d439abb39720e237 /program/js/list.js
parentdcf134c436e54316dd2ced1bc9d2309fdb784a32 (diff)
- Enable single-selection toggling in JS list object
- Use row id's instead of folder names in folder renaming/moving - Fix some smaller errors in folder renaming/moving
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/list.js b/program/js/list.js
index ccc0dda72..be7b02ddc 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -37,6 +37,7 @@ function rcube_list_widget(list, p)
this.multiselect = false;
this.draggable = false;
this.keyboard = false;
+ this.toggleselect = false;
this.dont_select = false;
this.drag_active = false;
@@ -347,8 +348,11 @@ select_row: function(id, mod_key, with_mouse)
if (!this.selection.length)
this.shift_start = null;
+ if (this.toggleselect && this.last_selected==id)
+ this.highlight_row(id, true);
+
this.last_selected = id;
- this.set_classname(this.rows[id].obj, 'focused', true);
+ this.set_classname(this.rows[id].obj, 'focused', true);
},