javascripts/xdatetime.js in netzke-basepack-0.7.6 vs javascripts/xdatetime.js in netzke-basepack-0.7.7

- old
+ new

@@ -4,10 +4,11 @@ * @version 0.2 (July 20th, 2011) * @author atian25 (http://www.sencha.com/forum/member.php?51682-atian25) * @author ontho (http://www.sencha.com/forum/member.php?285806-ontho) * @author jakob.ketterl (http://www.sencha.com/forum/member.php?25102-jakob.ketterl) * @link http://www.sencha.com/forum/showthread.php?134345-Ext.ux.form.field.DateTime + * from http://www.sencha.com/forum/showthread.php?134345-Ext.ux.form.field.DateTime&p=863449&viewfull=1#post863449 */ Ext.define('Ext.ux.form.field.DateTime', { extend:'Ext.form.FieldContainer', mixins:{ field:'Ext.form.field.Field' @@ -110,34 +111,34 @@ me.callParent(); // this dummy is necessary because Ext.Editor will not check whether an inputEl is present or not this.inputEl = { - dom:{}, + dom: document.createElement('div'), swallowEvent:function(){} }; me.initField(); }, focus:function(){ - this.callParent(); + this.callParent(arguments); this.dateField.focus(); }, onItemFocus:function(item){ if (this.blurTask){ this.blurTask.cancel(); } this.focussedItem = item; }, - onItemBlur:function(item){ + onItemBlur:function(item, e){ var me = this; if (item != me.focussedItem){ return; } // 100ms to focus a new item that belongs to us, otherwise we will assume the user left the field me.blurTask = new Ext.util.DelayedTask(function(){ - me.fireEvent('blur', me); + me.fireEvent('blur', me, e); }); me.blurTask.delay(100); }, getValue: function(){