Fix forms
This commit is contained in:
parent
c7e4f9b83c
commit
dcba78ebb5
|
@ -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,
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue