From 92b0bae0d2e41dbb749c8b8168275972f811158c Mon Sep 17 00:00:00 2001 From: Cristian Fasanando Date: Wed, 28 Jan 2009 22:07:19 +0100 Subject: [PATCH] [svn r18057] Minor - Fixed bug in calendar not capture the date - see FS#3452 --- main/inc/lib/formvalidator/Element/tbl_change.js.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/inc/lib/formvalidator/Element/tbl_change.js.php b/main/inc/lib/formvalidator/Element/tbl_change.js.php index 189a52025d..87d1fcea3a 100644 --- a/main/inc/lib/formvalidator/Element/tbl_change.js.php +++ b/main/inc/lib/formvalidator/Element/tbl_change.js.php @@ -1,5 +1,5 @@ var day; @@ -144,7 +144,7 @@ function initCalendar() { } else { style = ''; } - str += "" + i + "" + str += "" + i + "" dayInWeek++; } for (i = dayInWeek; i < 7; i++) { @@ -153,7 +153,7 @@ function initCalendar() { str += ""; - cnt.innerHTML = str; + cnt.innerHTML = str; } /** @@ -171,6 +171,7 @@ function returnDate(d,m,y) { var regex = new RegExp(window.opener.fieldName, "i"); if (regex.test(forminputs[i].getAttribute('name'))) { datevalues[dateindex++] = forminputs[i]; + window.close(); } } datevalues[0].selectedIndex = (d-1) ;