inline edit disabled param
This commit is contained in:
@@ -152,6 +152,11 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
|
||||
});
|
||||
}
|
||||
|
||||
this.paramList.push({
|
||||
name: 'inlineEditDisabled',
|
||||
type: 'bool'
|
||||
});
|
||||
|
||||
this.paramList.forEach(function (o) {
|
||||
this.model.defs.fields[o.name] = o;
|
||||
}, this);
|
||||
@@ -178,6 +183,8 @@ Espo.define('views/admin/field-manager/edit', ['view', 'model'], function (Dep,
|
||||
this.createFieldView('bool', 'isPersonalData', null, {});
|
||||
}
|
||||
|
||||
this.createFieldView('bool', 'inlineEditDisabled', null, {});
|
||||
|
||||
this.createFieldView('text', 'tooltipText', null, {
|
||||
trim: true,
|
||||
rows: 1
|
||||
|
||||
@@ -232,6 +232,12 @@ Espo.define('views/fields/base', 'view', function (Dep) {
|
||||
}
|
||||
}, this);
|
||||
|
||||
var additionaParamList = ['inlineEditDisabled'];
|
||||
|
||||
additionaParamList.forEach(function (item) {
|
||||
this.params[item] = this.model.getFieldParam(this.name, item) || null;
|
||||
}, this);
|
||||
|
||||
this.mode = this.options.mode || this.mode;
|
||||
|
||||
this.readOnly = this.readOnly || this.params.readOnly || this.model.getFieldParam(this.name, 'readOnly') || this.model.getFieldParam(this.name, 'clientReadOnly');
|
||||
|
||||
Reference in New Issue
Block a user