dynamic logic and forumla add field focus

This commit is contained in:
yuri
2017-04-27 15:41:24 +03:00
parent 0f4c3988f8
commit fcaf184b13
2 changed files with 14 additions and 0 deletions
@@ -64,6 +64,13 @@ Espo.define('views/admin/dynamic-logic/fields/field', 'views/fields/multi-enum',
this.params.options = this.getFieldList();
this.setupTranslatedOptions();
},
afterRender: function () {
Dep.prototype.afterRender.call(this);
if (this.$element && this.$element[0] && this.$element[0].selectize) {
this.$element[0].selectize.focus();
}
}
});
@@ -56,6 +56,13 @@ Espo.define('views/admin/formula/fields/attribute', 'views/fields/multi-enum', f
}, this);
this.params.options = attributeList;
},
afterRender: function () {
Dep.prototype.afterRender.call(this);
if (this.$element && this.$element[0] && this.$element[0].selectize) {
this.$element[0].selectize.focus();
}
}
});