Thomas Bruederli
2013-02-10 d94a710e7ab475fc3c6db6dfb815663f06978d58
Trigger and forward 'listupdate' events from list.js
2 files modified
8 ■■■■ changed files
program/js/app.js 1 ●●●● patch | view | raw | blame | history
program/js/list.js 7 ●●●● patch | view | raw | blame | history
program/js/app.js
@@ -205,6 +205,7 @@
          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); };
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 @@
    new_row = new_row.nextSibling;
  }
  this.triggerEvent('listupdate');
  return false;
},
@@ -481,6 +482,7 @@
    new_row = new_row.nextSibling;
  }
  this.triggerEvent('listupdate');
  return false;
},
@@ -523,6 +525,7 @@
    new_row = new_row.nextSibling;
  }
  this.triggerEvent('listupdate');
  return false;
},
@@ -559,6 +562,8 @@
    }
    new_row = new_row.nextSibling;
  }
  this.triggerEvent('listupdate');
  return false;
},