summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorJohnDoh <roundcube@tehinterweb.co.uk>2014-10-16 08:05:07 +0100
committerJohnDoh <roundcube@tehinterweb.co.uk>2014-10-16 08:05:07 +0100
commit9d693a4b55fadd6004e849259361a6f12ffe1885 (patch)
treef4ffbcfc964554ee88bf61835a3303b37d7e476a /program/js/app.js
parentc45507e317bfc5310005d651a3818b2669541fba (diff)
better events for get_single_uid/cid
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 9dca320dd..5d799c278 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7830,13 +7830,17 @@ function rcube_webmail()
// and return the message uid
this.get_single_uid = function()
{
- return this.env.uid ? this.env.uid : (this.message_list ? this.message_list.get_single_selection() : null);
+ var uid = this.env.uid || (this.message_list ? this.message_list.get_single_selection() : null);
+ var result = ref.triggerEvent('get_single_uid', { uid: uid });
+ return result || uid;
};
// same as above but for contacts
this.get_single_cid = function()
{
- return this.env.cid ? this.env.cid : (this.contact_list ? this.contact_list.get_single_selection() : null);
+ var cid = this.env.cid || (this.contact_list ? this.contact_list.get_single_selection() : null);
+ var result = ref.triggerEvent('get_single_cid', { cid: cid });
+ return result || cid;
};
// get the IMP mailbox of the message with the given UID