thomascube
2008-02-05 b155682d575dad71f35bd8c1c1d27467c9caa1e2
Also send search request when deleting a contact (#1484620)

2 files modified
8 ■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 7 ●●●● patch | view | raw | blame | history
CHANGELOG
@@ -8,6 +8,7 @@
- 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)
program/js/app.js
@@ -2378,6 +2378,7 @@
      return;
      
    var a_cids = new Array();
    var qs = '';
    if (this.env.cid)
      a_cids[a_cids.length] = this.env.cid;
@@ -2396,8 +2397,12 @@
        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;
    };