summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-22 12:25:08 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-08-22 12:25:08 +0000
commitddcbdace2ec23d743edf5a834b75254c6500a907 (patch)
tree7f3d4abc90d8be0fdd1d4bf4dbcf19b6b1884125 /roundcubemail/program/js/app.js
parent363bfc4bef8536007f4c7b93703fe55f84dd7ebb (diff)
- Fix contact row update after name change when in searching mode, update changelog
git-svn-id: https://svn.roundcube.net/trunk@5108 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 6da5a578c..808adc575 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3997,12 +3997,19 @@ function rcube_webmail()
};
// update a contact record in the list
- this.update_contact_row = function(cid, cols_arr, newcid)
+ this.update_contact_row = function(cid, cols_arr, newcid, source)
{
var c, row, list = this.contact_list;
cid = String(cid).replace(this.identifier_expr, '_');
+ // when in searching mode, concat cid with the source name
+ if (!list.rows[cid]) {
+ cid = cid+'-'+source;
+ if (newcid)
+ newcid = newcid+'-'+source;
+ }
+
if (list.rows[cid] && (row = list.rows[cid].obj)) {
for (c=0; c<cols_arr.length; c++)
if (row.cells[c])