summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-04-26 17:07:27 +0000
committerthomascube <thomas@roundcube.net>2009-04-26 17:07:27 +0000
commitc5d8db9f818dd622c8cd6f915a1b1ba7af51d4c6 (patch)
tree386d481c5e4c106d2f0c91b54d345273cee626c8
parent5c2d6e3555af7a2e71c0087d4b4c0a8780e835ca (diff)
Add javascript event 'insertrow'
-rw-r--r--program/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c17e03288..6293392cb 100644
--- a/program/js/app.js
+++ b/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));
};