Fix forms

This commit is contained in:
Julia Radzhabova 2022-12-01 23:56:27 +03:00
parent c7e4f9b83c
commit dcba78ebb5
3 changed files with 6 additions and 5 deletions

View file

@ -83,7 +83,7 @@ define([
this.cmbRole = new Common.UI.ComboBox({
el: $('#id-role-del-remove', $window),
style: 'width: 100%;',
menuStyle: 'min-width: 100%;',
menuStyle: 'min-width: 100%;max-height: 190px;',
cls: 'input-group-nr',
data: [],
editable: false,

View file

@ -129,7 +129,7 @@ define([
afterRender: function() {
this.setSettings(this.props);
this.setTitle((this.isEdit) ? this.txtTitleEdit : this.txtTitleNew);
this.setTitle((this.options.isEdit) ? this.txtTitleEdit : this.txtTitleNew);
},
show: function() {

View file

@ -131,11 +131,12 @@ define([ 'common/main/lib/view/AdvancedSettingsWindow',
var arr = [];
var me = this;
for (var i=0; i<this.roles.length; i++) {
var role = roles[i].asc_getSettings();
(role.fields>0) && arr.push({
var role = roles[i].asc_getSettings(),
fields = role.asc_getFieldCount();
(fields>0) && arr.push({
name: role.asc_getName() || me.textAnyone,
color: role.asc_getColor(),
fields: role.fields,//role.asc_getFields(),
fields: fields,
index: i,
scope: this
});