Fix Date handling by the DataTable, again... Now it uses a custom date parser to take the ISO date format. Fixes bug #11428.
This commit is contained in:
parent
3971d9bd4f
commit
83395fbe95
3 changed files with 2 additions and 2 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
- fixed #11420: Snippet not save mimetype
|
- fixed #11420: Snippet not save mimetype
|
||||||
- fixed #11422: Disabled scheduled task run by spectre
|
- fixed #11422: Disabled scheduled task run by spectre
|
||||||
- fixed #11431: Prototypes cache attribute lost
|
- fixed #11431: Prototypes cache attribute lost
|
||||||
|
- fixed #11428: Dataform Date Field Problem
|
||||||
|
|
||||||
7.8.12
|
7.8.12
|
||||||
- fixed #11285: Pasting HTML into Code Editor in IE
|
- fixed #11285: Pasting HTML into Code Editor in IE
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ sub getDataTableHtml {
|
||||||
|
|
||||||
### Prepare the columns data
|
### Prepare the columns data
|
||||||
my %parsers = (
|
my %parsers = (
|
||||||
date => "YAHOO.util.DataSource.parseDate",
|
date => "YAHOO.lang.JSON.stringToDate",
|
||||||
number => "YAHOO.util.DataSource.parseNumber",
|
number => "YAHOO.util.DataSource.parseNumber",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ WebGUI.Form.DataTable
|
||||||
delete data.columns[ i ].editorOptions;
|
delete data.columns[ i ].editorOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
YAHOO.lang.JSON.dateToString = function(d) { return d.toString(); }; /* this overrides the default stringify date format */
|
|
||||||
return YAHOO.lang.JSON.stringify( data );
|
return YAHOO.lang.JSON.stringify( data );
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue