diff options
author | alecpl <alec@alec.pl> | 2010-04-19 12:25:06 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-04-19 12:25:06 +0000 |
commit | 3a003cc9fbeafd8a05d2136e6c74aad3e530cdca (patch) | |
tree | e08f67ef865f367ead5af97b23218761986003ed /program | |
parent | c287f34bd37427f81d6e7a7e0604e998554348be (diff) |
- fix dublicated request in msglist_click()
Diffstat (limited to 'program')
-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); } } |