dbgenerate.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 27 Feb 2012 06:18:31 +0000 (14:18 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 27 Feb 2012 06:18:31 +0000 (14:18 +0800)
dbgenerate.js

index 75bc5e3..a1a0992 100644 (file)
@@ -385,6 +385,10 @@ tables.forEach(function(table) {
             '|xns' : 'Roo.form',
             xtype : xtype
         }
+         if (xtype == 'DateField') {
+            form[row.name].format = 'Y-m-d';
+        }
+        
         if (xtype == 'TextArea') {
             form[row.name].height = 100;
         }