summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-11-17 09:49:09 +0100
committerAleksander Machniak <alec@alec.pl>2014-11-17 09:49:09 +0100
commitd876c6bd52f20a4bcfffef46d7504f3ebd89383f (patch)
treeb069aafd8aacd02ee62cb8de5568240f1164398d /program/js
parent3d8745bd0ba6a98ccac1b32a4c2fa934302d4d58 (diff)
parent0a909fb722f2089a90d202d83558b4f271626944 (diff)
Merge pull request #249 from JohnDoh/patch-1
Check to see if the content frame exists before loading a contact
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 31544abf0..984dddf14 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4704,7 +4704,7 @@ function rcube_webmail()
source = this.env.source ? this.env.address_sources[this.env.source] : null;
// we don't have dblclick handler here, so use 200 instead of this.dblclick_time
- if (id = list.get_single_selection())
+ if (this.env.contentframe && (id = list.get_single_selection()))
this.preview_timer = setTimeout(function(){ ref.load_contact(id, 'show'); }, 200);
else if (this.env.contentframe)
this.show_contentframe(false);