From ce988a0778aee7fb42ce5fc42e2986d562b6ccbb Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 09 Feb 2011 05:33:26 -0500 Subject: [PATCH] Always generate valid DOM identifiers using html_identifier() write original identifier string to rel attribute where possible --- program/js/app.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 3c8502d..43be6ae 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3781,6 +3781,9 @@ // update a contact record in the list this.update_contact_row = function(cid, cols_arr, newcid) { + cid = String(cid).replace(this.identifier_expr, '_'); + newcid = String(newcid).replace(this.identifier_expr, '_'); + var row; if (this.contact_list.rows[cid] && (row = this.contact_list.rows[cid].obj)) { for (var c=0; c<cols_arr.length; c++) @@ -3813,7 +3816,7 @@ even = rowcount%2, row = document.createElement('tr'); - row.id = 'rcmrow'+cid; + row.id = 'rcmrow'+String(cid).replace(this.identifier_expr, '_'); row.className = 'contact '+(even ? 'even' : 'odd'); if (this.contact_list.in_selection(cid)) -- Gitblit v1.9.1