Fix a JS error in the datepicker which preventented it from working normally.

This commit is contained in:
Colin Kuskie 2009-06-26 17:57:07 +00:00
parent e5a0af1260
commit 5bd0b12025
2 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,5 @@
7.7.13
- fixed #10574: Creating Calendar Entry
7.7.12
- Updated auth to allow sending back of non-text/html mime types.

View file

@ -2,6 +2,7 @@ YAHOO.namespace('WebGUI.Form');
YAHOO.WebGUI.Form.DatePicker = {
init: function() {
this.time = {};
this.codeSelect = false;
var container = document.createElement('div');
YAHOO.util.Dom.setStyle(container, 'font-size', '9pt');
YAHOO.util.Dom.setStyle(container, 'position', 'absolute');
@ -143,9 +144,11 @@ YAHOO.WebGUI.Form.DatePicker = {
this.min = '00';
if (!this.sec)
this.sec = '00';
this.hourEl.value = this.hour;
this.minuteEl.value = this.min;
this.secEl.value = this.sec;
if (this.useTime) {
this.hourEl.value = this.hour;
this.minuteEl.value = this.min;
this.secEl.value = this.sec;
}
this.calendar.select(date);
var selectedDates = this.calendar.getSelectedDates();
if (selectedDates.length > 0) {