summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-06 14:42:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-06 14:42:39 +0000
commit8741945860c3d2fbbd46842dd0039398b228127e (patch)
treefd5fed38dec004cf875b472453f72608091ec063 /roundcubemail/program
parentde1eeba7ad83d38dc5e801e3b0f9ceb2d936413a (diff)
- Fix pressing select all/unread multiple times (#1485723)
git-svn-id: https://svn.roundcube.net/trunk@2277 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/list.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index 0fd4fdab6..8d8f9e965 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/program/js/list.js
@@ -506,8 +506,8 @@ select_all: function(filter)
// reset but remember selection first
var select_before = this.selection.join(',');
- this.clear_selection();
-
+ this.selection = new Array();
+
for (var n in this.rows)
{
if (!filter || (this.rows[n] && this.rows[n][filter] == true))
@@ -515,6 +515,11 @@ select_all: function(filter)
this.last_selected = n;
this.highlight_row(n, true);
}
+ else if (this.rows[n])
+ {
+ this.set_classname(this.rows[n].obj, 'selected', false);
+ this.set_classname(this.rows[n].obj, 'unfocused', false);
+ }
}
// trigger event if selection changed