From fb0b4a6e4e836ec723db82975ac2101cdee67a91 Mon Sep 17 00:00:00 2001 From: thomasb Date: Tue, 5 Feb 2008 23:24:30 +0000 Subject: Also send search request when deleting a contact (#1484620) git-svn-id: https://svn.roundcube.net/trunk@1021 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/CHANGELOG | 1 + roundcubemail/program/js/app.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 783d25481..f09983c48 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -8,6 +8,7 @@ CHANGELOG RoundCube Webmail - Respect config when localize folder names (#1484707) - Applied patch for updating page title (#1484727, #1484650) - Applied patch to prevent from purging inbox by uberlinuxguy (#1484449) +- Also send search request when deleting a contact (#1484620) - Add CSS hack for Safari 2008/02/02 (thomasb) diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 66b7de05b..6504bca83 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -2378,6 +2378,7 @@ function rcube_webmail() return; var a_cids = new Array(); + var qs = ''; if (this.env.cid) a_cids[a_cids.length] = this.env.cid; @@ -2396,8 +2397,12 @@ function rcube_webmail() this.show_contentframe(false); } + // also send search request to get the right records from the next page + if (this.env.search_request) + qs += '&_search='+this.env.search_request; + // send request to server - this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_from='+(this.env.action ? this.env.action : '')); + this.http_post('delete', '_cid='+urlencode(a_cids.join(','))+'&_from='+(this.env.action ? this.env.action : '')+qs); return true; }; -- cgit v1.2.3