summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-10 10:39:25 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-10 10:39:56 +0200
commitdddb9dee612e56298869422700aff0fba187a842 (patch)
tree4390219eb1cb0eba480ce2c4942972d9516ac169 /program/js
parentf5f056e7f213666d9e9556092795b07df8e8354d (diff)
Fix errors when adding/updating contacts in active search (#1490015)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 1cd09ded6..0a635c0dc 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4688,6 +4688,7 @@ function rcube_webmail()
this.list_contacts = function(src, group, page)
{
var win, folder, url = {},
+ refresh = src === undefined && group === undefined && page === undefined,
target = window;
if (!src)
@@ -4700,7 +4701,7 @@ function rcube_webmail()
page = this.env.current_page = 1;
this.reset_qsearch();
}
- else if (group != this.env.group)
+ else if (!refresh && group != this.env.group)
page = this.env.current_page = 1;
if (this.env.search_id)
@@ -4837,6 +4838,9 @@ function rcube_webmail()
if (this.env.group)
url._gid = this.env.group;
+ if (this.env.search_request)
+ url._search = this.env.search_request;
+
url._action = action;
url._source = this.env.source;
url._cid = cid;