javascripts/xdatetime.js in netzke-basepack-0.8.4 vs javascripts/xdatetime.js in netzke-basepack-0.9.0.rc1

- old
+ new

@@ -27,17 +27,19 @@ * Convenience config for specifying the format of the date portion. * This value is overridden if format is specified in the dateConfig. * The default is 'Y-m-d' */ dateFormat: 'Y-m-d', + dateSubmitFormat: 'Y-m-d', /** * @cfg {String} timeFormat * Convenience config for specifying the format of the time portion. * This value is overridden if format is specified in the timeConfig. * The default is 'H:i:s' */ timeFormat: 'H:i:s', + timeSubmitFormat: 'H:i:s', // /** // * @cfg {String} dateTimeFormat // * The format used when submitting the combined value. // * Defaults to 'Y-m-d H:i:s' // */ @@ -78,19 +80,23 @@ me.dateField = Ext.create('Ext.form.field.Date', Ext.apply({ format:me.dateFormat, flex:1, isFormField:false, //exclude from field query's - submitValue:false + submitValue:false, + submitFormat: me.dateSubmitFormat, + readOnly: me.readOnly }, me.dateConfig)); me.items.push(me.dateField); me.timeField = Ext.create('Ext.form.field.Time', Ext.apply({ format:me.timeFormat, flex:1, isFormField:false, //exclude from field query's - submitValue:false + submitValue:false, + submitFormat: me.timeSubmitFormat, + readOnly: me.readOnly }, me.timeConfig)); me.items.push(me.timeField); for (; i < me.items.length; i++) { me.items[i].on('focus', Ext.bind(me.onItemFocus, me)); @@ -110,13 +116,13 @@ } me.callParent(); // this dummy is necessary because Ext.Editor will not check whether an inputEl is present or not - this.inputEl = { - dom: document.createElement('div'), - swallowEvent:function(){} - }; + // this.inputEl = { + // dom: document.createElement('div'), + // swallowEvent:function(){} + // }; me.initField(); }, focus:function(){