diff options
Diffstat (limited to 'program/js/list.js')
-rw-r--r-- | program/js/list.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/program/js/list.js b/program/js/list.js index 0797295ee..719585893 100644 --- a/program/js/list.js +++ b/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(); }, |