Refactoring InputFieldBtnCalendar

This commit is contained in:
Julia Radzhabova 2022-03-04 19:33:09 +03:00
parent 65f1dd6b07
commit 3f9c482002
2 changed files with 8 additions and 7 deletions

View file

@ -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',

View file

@ -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();
}) })
}, },