diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-02-10 18:19:41 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-02-10 18:19:41 +0100 |
commit | d94a710e7ab475fc3c6db6dfb815663f06978d58 (patch) | |
tree | 7a3b901add9cbe7e487820ad5af87dd31b83c9fa /program | |
parent | d6185f3c91c2eff1befc14d61443de8a28ac92f5 (diff) |
Trigger and forward 'listupdate' events from list.js
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 1 | ||||
-rw-r--r-- | program/js/list.js | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 57ef903eb..18baf8022 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -205,6 +205,7 @@ function rcube_webmail() this.message_list.addEventListener('dragend', function(e){ p.drag_end(e); }); this.message_list.addEventListener('expandcollapse', function(e){ p.msglist_expand(e); }); this.message_list.addEventListener('column_replace', function(e){ p.msglist_set_coltypes(e); }); + this.message_list.addEventListener('listupdate', function(e){ p.triggerEvent('listupdate', e); }); document.onmouseup = function(e){ return p.doc_mouse_up(e); }; this.gui_objects.messagelist.parentNode.onmousedown = function(e){ return p.click_on_list(e); }; diff --git a/program/js/list.js b/program/js/list.js index 660b74d85..7e706b830 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -3,7 +3,7 @@ | Roundcube List Widget | | | | This file is part of the Roundcube Webmail client | - | Copyright (C) 2006-2009, The Roundcube Dev Team | + | Copyright (C) 2006-2013, The Roundcube Dev Team | | | | Licensed under the GNU General Public License version 3 or | | any later version with exceptions for skins & plugins. | @@ -434,6 +434,7 @@ collapse: function(row) new_row = new_row.nextSibling; } + this.triggerEvent('listupdate'); return false; }, @@ -481,6 +482,7 @@ expand: function(row) new_row = new_row.nextSibling; } + this.triggerEvent('listupdate'); return false; }, @@ -523,6 +525,7 @@ collapse_all: function(row) new_row = new_row.nextSibling; } + this.triggerEvent('listupdate'); return false; }, @@ -559,6 +562,8 @@ expand_all: function(row) } new_row = new_row.nextSibling; } + + this.triggerEvent('listupdate'); return false; }, |