From 1c0c3717153267a0f885afd772eb95d2d24953d2 Mon Sep 17 00:00:00 2001 From: robin Date: Fri, 19 Oct 2007 12:24:04 +0000 Subject: - 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 --- roundcubemail/program/js/list.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'roundcubemail/program/js/list.js') 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); }, -- cgit v1.2.3