summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-19 12:25:06 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-19 12:25:06 +0000
commit437651b60cf1042d2583f303e8632afa98404f67 (patch)
tree4c0080abbd1e6ca19da451bde4c8d831687f51dc /roundcubemail/program/js
parent8ad91df9a54e647e94ec7ccba9ace9eafdd3f4a0 (diff)
- fix dublicated request in msglist_click()
git-svn-id: https://svn.roundcube.net/trunk@3503 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js7
1 files 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);
}
}