summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/list.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-04-28 18:07:12 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-04-28 18:07:12 +0000
commit4b8a0ab1373c7af1488c38352545d8cab7330e40 (patch)
tree463b2c8457680769a98dc5144a09fb600f454f19 /roundcubemail/program/js/list.js
parent1d33c02139d4cbb424a7d720723c353d0580b1f2 (diff)
Merged branch devel-addressbook from r443 back to trunk
git-svn-id: https://svn.roundcube.net/trunk@543 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/list.js')
-rw-r--r--roundcubemail/program/js/list.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index 0797295ee..719585893 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/program/js/list.js
@@ -95,7 +95,7 @@ init: function()
init_row: function(row)
{
// make references in internal array and set event handlers
- if (row && String(row.id).match(/rcmrow([0-9]+)/))
+ if (row && String(row.id).match(/rcmrow([a-z0-9\-_=]+)/i))
{
var p = this;
var uid = RegExp.$1;
@@ -117,12 +117,14 @@ init_row: function(row)
/**
*
*/
-clear: function()
+clear: function(sel)
{
var tbody = document.createElement('TBODY');
this.list.insertBefore(tbody, this.list.tBodies[0]);
this.list.removeChild(this.list.tBodies[1]);
- this.rows = new Array();
+ this.rows = new Array();
+
+ if (sel) this.clear_selection();
},