diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-15 09:26:24 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-11-15 09:26:24 +0000 |
| commit | b064e92c81950aa4f35bc81e6436b700614becc3 (patch) | |
| tree | afadb031472e9fc5277e8151114881db12434d1f | |
| parent | a66fd7b8815b120becb59e92cc02b4c8a3d77679 (diff) | |
- Fix focused elements aren't unfocused when clicking on the list (#1487123)
git-svn-id: https://svn.roundcube.net/trunk@4224 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/program/js/list.js | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index ba6371bad..871bc3174 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -70,6 +70,7 @@ CHANGELOG Roundcube Webmail - Fix handling of folders with "<>" characters in name - jQuery 1.4.4 - Fix handling of HTML entity strings in plain text messages +- Fix focused elements aren't unfocused when clicking on the list (#1487123) RELEASE 0.4.2 ------------- diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js index aabba0842..406590b4c 100644 --- a/roundcubemail/program/js/list.js +++ b/roundcubemail/program/js/list.js @@ -214,6 +214,7 @@ focus: function(e) { var id; this.focused = true; + for (var n in this.selection) { id = this.selection[n]; if (this.rows[id] && this.rows[id].obj) { @@ -221,6 +222,9 @@ focus: function(e) } } + // Un-focus already focused elements + $('*:focus').blur(); + if (e || (e = window.event)) rcube_event.cancel(e); }, |
