fix 11432 DataTable date input

This commit is contained in:
Doug Bell 2010-08-10 14:05:35 -05:00
parent 731ae3801a
commit 625da8bb41
4 changed files with 39 additions and 1 deletions

View file

@ -202,7 +202,10 @@ WebGUI.Form.DataTable
YAHOO.util.Dom.get( this.containerId + "-table" ).style.display = "none";
}
var dataTableOptions = { };
var dataTableOptions = {
dateOptions : { format : this.options.dateFormat }
};
if ( this.options.showEdit ) {
dataTableOptions.draggableColumns = true;
}
@ -629,6 +632,9 @@ WebGUI.Form.DataTable
sortable : ( col ? col.sortable : 1 ),
editor : ( format == "date" ? "date" : "textbox")
};
if ( format == "date" ) {
newCol["dateOptions"] = { format : this.options.dateFormat };
}
var newIndex = col ? col.getKeyIndex() : undefined;
this.dataTable.insertColumn( newCol, newIndex );