summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-09 10:33:26 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-02-09 10:33:26 +0000
commit5c98ebb47b2c9584fd989da3b35623d11e08f4fc (patch)
tree5149997ecce6e7d247cf7e047543a10979bedc6f /roundcubemail/program/js
parent7efeea6838c6bffa5269d4ec2f5c334aed1ffffb (diff)
Always generate valid DOM identifiers using html_identifier() write original identifier string to rel attribute where possible
git-svn-id: https://svn.roundcube.net/trunk@4508 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 3c8502d0e..43be6ae8d 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3781,6 +3781,9 @@ function rcube_webmail()
// 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 @@ function rcube_webmail()
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))