summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-21 17:19:02 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-21 17:19:02 +0100
commit4a7a861912e7b7353a5575fe7217be3626a8dfef (patch)
treec1d3be9822b81c1298779daf94fb9f1260f90769 /program/js/app.js
parentd93ce5cde23b7170b96fd9816e8d5e8cfdf6e0f6 (diff)
Apply the right flags for searching in all folders
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 675372107..1cbc36a76 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4108,11 +4108,11 @@ function rcube_webmail()
};
// send remote request to search mail or contacts
- this.qsearch = function(value, mods)
+ this.qsearch = function(value)
{
if (value != '') {
var r, lock = this.set_busy(true, 'searching'),
- url = this.search_params(value, null, mods);
+ url = this.search_params(value);
if (this.message_list)
this.clear_message_list();
@@ -4140,8 +4140,8 @@ function rcube_webmail()
{
var n, url = {}, mods_arr = [],
mods = this.env.search_mods,
- mbox = this.env.mailbox,
- scope = this.env.search_scope || 'base';
+ scope = this.env.search_scope || 'base',
+ mbox = scope == 'all' ? '*' : this.env.mailbox;
if (!filter && this.gui_objects.search_filter)
filter = this.gui_objects.search_filter.value;