From: Michael M Slusarz Date: Fri, 22 Jan 2010 18:27:06 +0000 (-0700) Subject: Fix reloading results when text changes in quicksearch box X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=49b8416c4978894c9ca1e1be86bf235c9a48dbee;p=horde.git Fix reloading results when text changes in quicksearch box --- diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index d54a39853..c94eda11b 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -1501,10 +1501,16 @@ var DimpBase = { quicksearchRun: function() { + var q = $F('qsearch_input'); + if (this.isSearch()) { + /* Search text has changed. */ + if (this.search.query != q) { + this.folderswitch = true; + } this.viewport.reload(); } else { - this.search = { mbox: this.folder }; + this.search = { mbox: this.folder, query: q }; this.loadMailbox(DIMP.conf.qsearchid); } },