diff options
author | alecpl <alec@alec.pl> | 2010-03-25 18:16:50 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-25 18:16:50 +0000 |
commit | bc2accc455e1dab67e0d29f034deddd9401ecad2 (patch) | |
tree | 3df9f5c49eee185972f055638b27ab83078914f9 /program/js/app.js | |
parent | fb7ec576ab3a353b6eb99614e9636a9096462807 (diff) |
- Added Home/End kayboard keys support on lists (#1486430)
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/program/js/app.js b/program/js/app.js index 0fc5e7675..5e5bfe06f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1927,7 +1927,7 @@ function rcube_webmail() if (!this.env.threading) return; - var root = this.find_thread_root(uid); + var root = this.message_list.find_root(uid); if (uid == root) return; @@ -1947,17 +1947,6 @@ function rcube_webmail() this.set_unread_children(root); }; - // finds root message for specified thread - this.find_thread_root = function(uid) - { - var r = this.message_list.rows[uid]; - - if (r.parent_uid) - return this.find_thread_root(r.parent_uid); - else - return uid; - } - // update thread indicators for all messages in a thread below the specified message // return number of removed/added root level messages this.update_thread = function (uid) @@ -1975,7 +1964,7 @@ function rcube_webmail() count--; else if (row.unread) { // update unread_children for thread root - var parent = this.find_thread_root(uid); + var parent = this.message_list.find_root(uid); rows[parent].unread_children--; this.set_unread_children(parent); } |