diff options
-rw-r--r-- | program/js/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index 1366d800a..1358c36e0 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1185,9 +1185,9 @@ function rcube_webmail() var model = this.task == 'mail' ? this.env.mailboxes : this.env.contactfolders; this.drag_active = true; + if (this.preview_timer) clearTimeout(this.preview_timer); - if (this.preview_read_timer) clearTimeout(this.preview_read_timer); @@ -1397,7 +1397,6 @@ function rcube_webmail() { if (this.preview_timer) clearTimeout(this.preview_timer); - if (this.preview_read_timer) clearTimeout(this.preview_read_timer); @@ -1429,6 +1428,10 @@ function rcube_webmail() if (list.get_single_selection() && window.frames && window.frames[this.env.contentframe]) { if (window.frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)>=0) { + if (this.preview_timer) + clearTimeout(this.preview_timer); + if (this.preview_read_timer) + clearTimeout(this.preview_read_timer); this.preview_timer = window.setTimeout(function(){ ref.msglist_get_preview(); }, 200); } } |