From 765a0b0706a2ef347b71627e75bdc06d9656fe96 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sun, 10 Aug 2014 04:39:25 -0400 Subject: [PATCH] Fix errors when adding/updating contacts in active search (#1490015) --- program/js/app.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 6a68ebf..c643188 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -4739,6 +4739,7 @@ this.list_contacts = function(src, group, page) { var win, folder, url = {}, + refresh = src === undefined && group === undefined && page === undefined, target = window; if (!src) @@ -4751,7 +4752,7 @@ 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) @@ -4890,6 +4891,9 @@ 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; -- Gitblit v1.9.1