summaryrefslogtreecommitdiff
path: root/program/js/list.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-04 18:20:27 +0000
committerthomascube <thomas@roundcube.net>2008-09-04 18:20:27 +0000
commit0dbac3218130dfe418d6c7dc162f819c746bec2d (patch)
tree12fe7f8ac96d3fcbff68d32f6e048374b474d9a2 /program/js/list.js
parentd41f9762a7fa9e206a499bfa197435a578e36360 (diff)
Enable export of contacts as vCard + DRY
Diffstat (limited to 'program/js/list.js')
-rw-r--r--program/js/list.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/program/js/list.js b/program/js/list.js
index 1986e8b25..97549f7eb 100644
--- a/program/js/list.js
+++ b/program/js/list.js
@@ -31,6 +31,7 @@ function rcube_list_widget(list, p)
this.frame = null;
this.rows = [];
this.selection = [];
+ this.rowcount = 0;
this.subject_col = -1;
this.shiftkey = false;
@@ -69,6 +70,7 @@ init: function()
if (this.list && this.list.tBodies[0])
{
this.rows = new Array();
+ this.rowcount = 0;
var row;
for(var r=0; r<this.list.tBodies[0].childNodes.length; r++)
@@ -81,6 +83,7 @@ init: function()
}
this.init_row(row);
+ this.rowcount++;
}
this.frame = this.list.parentNode;
@@ -128,6 +131,7 @@ clear: function(sel)
this.list.insertBefore(tbody, this.list.tBodies[0]);
this.list.removeChild(this.list.tBodies[1]);
this.rows = new Array();
+ this.rowcount = 0;
if (sel) this.clear_selection();
},
@@ -145,6 +149,7 @@ remove_row: function(uid, sel_next)
this.select_next();
this.rows[uid] = null;
+ this.rowcount--;
},
@@ -161,6 +166,7 @@ insert_row: function(row, attop)
tbody.appendChild(row);
this.init_row(row);
+ this.rowcount++;
},