From 437651b60cf1042d2583f303e8632afa98404f67 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 19 Apr 2010 12:25:06 +0000 Subject: - fix dublicated request in msglist_click() git-svn-id: https://svn.roundcube.net/trunk@3503 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 1366d800a..1358c36e0 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); } } -- cgit v1.2.3