Fix forms
This commit is contained in:
parent
c7e4f9b83c
commit
dcba78ebb5
|
@ -83,7 +83,7 @@ define([
|
||||||
this.cmbRole = new Common.UI.ComboBox({
|
this.cmbRole = new Common.UI.ComboBox({
|
||||||
el: $('#id-role-del-remove', $window),
|
el: $('#id-role-del-remove', $window),
|
||||||
style: 'width: 100%;',
|
style: 'width: 100%;',
|
||||||
menuStyle: 'min-width: 100%;',
|
menuStyle: 'min-width: 100%;max-height: 190px;',
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
data: [],
|
data: [],
|
||||||
editable: false,
|
editable: false,
|
||||||
|
|
|
@ -129,7 +129,7 @@ define([
|
||||||
|
|
||||||
afterRender: function() {
|
afterRender: function() {
|
||||||
this.setSettings(this.props);
|
this.setSettings(this.props);
|
||||||
this.setTitle((this.isEdit) ? this.txtTitleEdit : this.txtTitleNew);
|
this.setTitle((this.options.isEdit) ? this.txtTitleEdit : this.txtTitleNew);
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
|
|
|
@ -131,11 +131,12 @@ define([ 'common/main/lib/view/AdvancedSettingsWindow',
|
||||||
var arr = [];
|
var arr = [];
|
||||||
var me = this;
|
var me = this;
|
||||||
for (var i=0; i<this.roles.length; i++) {
|
for (var i=0; i<this.roles.length; i++) {
|
||||||
var role = roles[i].asc_getSettings();
|
var role = roles[i].asc_getSettings(),
|
||||||
(role.fields>0) && arr.push({
|
fields = role.asc_getFieldCount();
|
||||||
|
(fields>0) && arr.push({
|
||||||
name: role.asc_getName() || me.textAnyone,
|
name: role.asc_getName() || me.textAnyone,
|
||||||
color: role.asc_getColor(),
|
color: role.asc_getColor(),
|
||||||
fields: role.fields,//role.asc_getFields(),
|
fields: fields,
|
||||||
index: i,
|
index: i,
|
||||||
scope: this
|
scope: this
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue