Refactoring InputFieldBtnCalendar
This commit is contained in:
parent
65f1dd6b07
commit
3f9c482002
|
@ -456,6 +456,13 @@ define([
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
focus: function () {
|
||||||
|
var me = this;
|
||||||
|
me.enableKeyEvents && me.monthPicker && _.delay(function() {
|
||||||
|
me.monthPicker.focus();
|
||||||
|
}, 10);
|
||||||
|
},
|
||||||
|
|
||||||
textJanuary: 'January',
|
textJanuary: 'January',
|
||||||
textFebruary: 'February',
|
textFebruary: 'February',
|
||||||
textMarch: 'March',
|
textMarch: 'March',
|
||||||
|
|
|
@ -671,16 +671,9 @@ define([
|
||||||
editable: true,
|
editable: true,
|
||||||
iconCls: 'toolbar__icon btn-datetime',
|
iconCls: 'toolbar__icon btn-datetime',
|
||||||
btnHint: '',
|
btnHint: '',
|
||||||
repeatInput: null,
|
|
||||||
showPwdOnClick: true,
|
|
||||||
menu: true
|
menu: true
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize : function(options) {
|
|
||||||
options = options || {};
|
|
||||||
Common.UI.InputField.prototype.initialize.call(this, options);
|
|
||||||
},
|
|
||||||
|
|
||||||
render: function (parentEl) {
|
render: function (parentEl) {
|
||||||
var me = this;
|
var me = this;
|
||||||
Common.UI.InputFieldBtn.prototype.render.call(this, parentEl);
|
Common.UI.InputFieldBtn.prototype.render.call(this, parentEl);
|
||||||
|
@ -708,6 +701,7 @@ define([
|
||||||
});
|
});
|
||||||
menu.alignPosition();
|
menu.alignPosition();
|
||||||
}
|
}
|
||||||
|
me.cmpCalendar.focus();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue