From 5db6f96d22b14651bc1a90413b57c96411249fb4 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 22 Aug 2011 08:25:08 -0400 Subject: [PATCH] - Fix contact row update after name change when in searching mode, update changelog --- program/js/app.js | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 6da5a57..808adc5 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3997,12 +3997,19 @@ }; // 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]) -- Gitblit v1.9.1