From 7910c0ff55edcb9ed973abd680489b9e0f28d0cb Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 03 Mar 2010 07:11:04 -0500 Subject: [PATCH] Remember search modifiers in user prefs (#1486146) + bring back the old defaults --- program/js/app.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index f03b0c5..ab70b02 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -2616,10 +2616,13 @@ if (this.message_list) { this.message_list.clear(); if (this.env.search_mods) { - var head_arr = new Array(); - for (var n in this.env.search_mods) - head_arr.push(n); - addurl += '&_headers='+head_arr.join(','); + var mods = this.env.search_mods[this.env.mailbox] ? this.env.search_mods[this.env.mailbox] : this.env.search_mods['*']; + if (mods) { + var head_arr = new Array(); + for (var n in mods) + head_arr.push(n); + addurl += '&_headers='+head_arr.join(','); + } } } else if (this.contact_list) { this.contact_list.clear(true); -- Gitblit v1.9.1