[svn r18057] Minor - Fixed bug in calendar not capture the date - see FS#3452

skala
Cristian Fasanando 17 years ago
parent cca7a7c348
commit 92b0bae0d2
  1. 7
      main/inc/lib/formvalidator/Element/tbl_change.js.php

@ -1,5 +1,5 @@
<?php
// $Id: tbl_change.js.php 9662 2006-10-24 09:44:41Z bmol $
// $Id: tbl_change.js.php 18057 2009-01-28 21:07:19Z cfasanando $
require ('../../../global.inc.php');
?>
var day;
@ -144,7 +144,7 @@ function initCalendar() {
} else {
style = '';
}
str += "<td" + style + "><a href=\"javascript:returnDate(" + i +","+month+","+year + ");\">" + i + "</a></td>"
str += "<td" + style + "><a href=\"javascript:returnDate(" + i +","+month+","+year + ");\" >" + i + "</a></td>"
dayInWeek++;
}
for (i = dayInWeek; i < 7; i++) {
@ -153,7 +153,7 @@ function initCalendar() {
str += "</tr></table>";
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) ;

Loading…
Cancel
Save