Fix a JS error in the datepicker which preventented it from working normally.
This commit is contained in:
parent
e5a0af1260
commit
5bd0b12025
2 changed files with 7 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
7.7.13
|
7.7.13
|
||||||
|
- fixed #10574: Creating Calendar Entry
|
||||||
|
|
||||||
7.7.12
|
7.7.12
|
||||||
- Updated auth to allow sending back of non-text/html mime types.
|
- Updated auth to allow sending back of non-text/html mime types.
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ YAHOO.namespace('WebGUI.Form');
|
||||||
YAHOO.WebGUI.Form.DatePicker = {
|
YAHOO.WebGUI.Form.DatePicker = {
|
||||||
init: function() {
|
init: function() {
|
||||||
this.time = {};
|
this.time = {};
|
||||||
|
this.codeSelect = false;
|
||||||
var container = document.createElement('div');
|
var container = document.createElement('div');
|
||||||
YAHOO.util.Dom.setStyle(container, 'font-size', '9pt');
|
YAHOO.util.Dom.setStyle(container, 'font-size', '9pt');
|
||||||
YAHOO.util.Dom.setStyle(container, 'position', 'absolute');
|
YAHOO.util.Dom.setStyle(container, 'position', 'absolute');
|
||||||
|
|
@ -143,9 +144,11 @@ YAHOO.WebGUI.Form.DatePicker = {
|
||||||
this.min = '00';
|
this.min = '00';
|
||||||
if (!this.sec)
|
if (!this.sec)
|
||||||
this.sec = '00';
|
this.sec = '00';
|
||||||
this.hourEl.value = this.hour;
|
if (this.useTime) {
|
||||||
this.minuteEl.value = this.min;
|
this.hourEl.value = this.hour;
|
||||||
this.secEl.value = this.sec;
|
this.minuteEl.value = this.min;
|
||||||
|
this.secEl.value = this.sec;
|
||||||
|
}
|
||||||
this.calendar.select(date);
|
this.calendar.select(date);
|
||||||
var selectedDates = this.calendar.getSelectedDates();
|
var selectedDates = this.calendar.getSelectedDates();
|
||||||
if (selectedDates.length > 0) {
|
if (selectedDates.length > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue