summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-04-24 07:51:43 +0000
committeralecpl <alec@alec.pl>2009-04-24 07:51:43 +0000
commit4b2be228e2c1cfb05811ea8edc8e575ec53d69c6 (patch)
tree8c7b6474a0d9a33994551889ea7857fd2db4b15f /program/js/app.js
parent111be7087f207b2e9a5bc71ebfa981b4024a08b9 (diff)
-Fix address list isn't refreshing after jquery integration (#1485818)
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/program/js/app.js b/program/js/app.js
index c22bd5397..eed88618d 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3706,14 +3706,19 @@ function rcube_webmail()
var rowcount = tbody.rows.length;
var even = rowcount%2;
- var row = $('<tr>').attr('id', 'rcmrow'+cid).addClass('class').addClass(even ? 'even' : 'odd');
-
+ var row = document.createElement('TR');
+ row.id = 'rcmrow'+cid;
+ row.className = 'contact '+(even ? 'even' : 'odd');
+
if (this.contact_list.in_selection(cid))
- row.addClass('selected');
+ row.className += ' selected';
// add each submitted col
for (var c in cols) {
- col = $('<td>').addClass(String(c).toLowerCase()).html(cols[c]).appendTo(row);
+ col = document.createElement('TD');
+ col.className = String(c).toLowerCase();
+ col.innerHTML = cols[c];
+ row.appendChild(col);
}
this.contact_list.insert_row(row);