fix 11432 DataTable date input
This commit is contained in:
parent
731ae3801a
commit
625da8bb41
4 changed files with 39 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue