From d575aa70b169499634fde4ab45e708c132b26441 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 16 Oct 2007 18:30:35 +0000 Subject: Correctly set rowhelper input textbox sizes. --- usr/local/www/row_helper_dynamic.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/row_helper_dynamic.js b/usr/local/www/row_helper_dynamic.js index 18e6d41..fb6f58d 100755 --- a/usr/local/www/row_helper_dynamic.js +++ b/usr/local/www/row_helper_dynamic.js @@ -2,11 +2,13 @@ var rowname = new Array(99); var rowtype = new Array(99); var newrow = new Array(99); +var rowsize = new Array(99); for (i = 0; i < 99; i++) { rowname[i] = ''; rowtype[i] = ''; newrow[i] = ''; + rowsize[i] = '25'; } var field_counter_js = 0; @@ -24,13 +26,13 @@ var addRowTo = (function() { for (i = 0; i < field_counter_js; i++) { td = d.createElement("td"); if(rowtype[i] == 'textbox') { - td.innerHTML=" "; + td.innerHTML=" "; } else if(rowtype[i] == 'select') { td.innerHTML=" "; } else if(rowtype[i] == 'checkbox') { td.innerHTML=" "; } else if(rowtype[i] == 'input') { - td.innerHTML=" "; + td.innerHTML=" "; } else if(rowtype[i] == 'password') { td.innerHTML=" "; } -- cgit v1.1