From 49b8416c4978894c9ca1e1be86bf235c9a48dbee Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 22 Jan 2010 11:27:06 -0700 Subject: [PATCH] Fix reloading results when text changes in quicksearch box --- imp/js/DimpBase.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } }, -- 2.11.0