From 339f6b7512520e7ad1c07c00adb0a18073e67300 Mon Sep 17 00:00:00 2001 From: alec Date: Thu, 4 Aug 2011 08:12:36 +0000 Subject: - Add abort_request() function git-svn-id: https://svn.roundcube.net/trunk@5021 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 66cae80d0..62e0fb0a7 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3434,10 +3434,8 @@ function rcube_webmail() if (this.gui_objects.qsearchbox) this.gui_objects.qsearchbox.value = ''; - if (this.env.qsearch) { - this.set_busy(this.env.qsearch.lock, false); - this.env.qsearch.request.abort(); - } + if (this.env.qsearch) + this.abort_request(this.env.qsearch); this.env.qsearch = null; this.env.search_request = null; @@ -3760,10 +3758,8 @@ function rcube_webmail() if (!ac) return; - for (i=0, len=ac.locks.length; i