From 8aee31cf5548c6046699379127df9f0018fcf383 Mon Sep 17 00:00:00 2001
From: Thomas B. <thomas@roundcube.net>
Date: Sun, 26 Oct 2014 08:21:05 -0400
Subject: [PATCH] Merge pull request #232 from JohnDoh/patch-1

---
 program/js/app.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 9dca320..5d799c2 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7830,13 +7830,17 @@
   // 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

--
Gitblit v1.9.1