summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/list.js
diff options
context:
space:
mode:
authorrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-19 12:24:04 +0000
committerrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-19 12:24:04 +0000
commit1c0c3717153267a0f885afd772eb95d2d24953d2 (patch)
tree5cede984b88e20f144b8bd6df1a78dbe068fcc21 /roundcubemail/program/js/list.js
parentd3e7422ce0896f5510cb52b053528913638082a9 (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 git-svn-id: https://svn.roundcube.net/trunk@887 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/list.js')
-rw-r--r--roundcubemail/program/js/list.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index ccc0dda72..be7b02ddc 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/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);
},