diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-26 17:07:27 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-04-26 17:07:27 +0000 |
| commit | eada29b98c44f8afbd8929f78df167e0c5d09326 (patch) | |
| tree | 5bf3425e70adc334f586afb3adf46f0be31e8fbb /roundcubemail/program | |
| parent | 335c951718ec32ff1e39f50c8d4c605fed8521e8 (diff) | |
Add javascript event 'insertrow'
git-svn-id: https://svn.roundcube.net/trunk@2430 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
| -rw-r--r-- | roundcubemail/program/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c17e03288..6293392cb 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3534,7 +3534,7 @@ function rcube_webmail() + (flags.unread ? ' unread' : '') + (flags.deleted ? ' deleted' : '') + (flags.flagged ? ' flagged' : '') - + (this.message_list.in_selection(uid) ? ' selected' : ''); + + (this.message_list.in_selection(uid) ? ' selected' : ''); // for performance use DOM instead of jQuery here var row = document.createElement('TR'); @@ -3583,6 +3583,7 @@ function rcube_webmail() } this.message_list.insert_row(row, attop); + this.triggerEvent('insertrow', { uid:uid, row:row }); // remove 'old' row if (attop && this.env.pagesize && this.message_list.rowcount > this.env.pagesize) { @@ -3725,6 +3726,8 @@ function rcube_webmail() } this.contact_list.insert_row(row); + this.triggerEvent('insertrow', { cid:cid, row:row }); + this.enable_command('export', (this.contact_list.rowcount > 0)); }; |
