Merge pull request #249 from JohnDoh/patch-1

Check to see if the content frame exists before loading a contact
pull/251/head
Aleksander Machniak 10 years ago
commit d876c6bd52

@ -4704,7 +4704,7 @@ function rcube_webmail()
source = this.env.source ? this.env.address_sources[this.env.source] : null; 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 // 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); this.preview_timer = setTimeout(function(){ ref.load_contact(id, 'show'); }, 200);
else if (this.env.contentframe) else if (this.env.contentframe)
this.show_contentframe(false); this.show_contentframe(false);

Loading…
Cancel
Save