From 0dbac3218130dfe418d6c7dc162f819c746bec2d Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 04 Sep 2008 14:20:27 -0400 Subject: [PATCH] Enable export of contacts as vCard + DRY --- program/js/list.js | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/program/js/list.js b/program/js/list.js index 1986e8b..97549f7 100644 --- a/program/js/list.js +++ b/program/js/list.js @@ -31,6 +31,7 @@ this.frame = null; this.rows = []; this.selection = []; + this.rowcount = 0; this.subject_col = -1; this.shiftkey = false; @@ -69,6 +70,7 @@ 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 @@ } this.init_row(row); + this.rowcount++; } this.frame = this.list.parentNode; @@ -128,6 +131,7 @@ 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 @@ this.select_next(); this.rows[uid] = null; + this.rowcount--; }, @@ -161,6 +166,7 @@ tbody.appendChild(row); this.init_row(row); + this.rowcount++; }, -- Gitblit v1.9.1