[DE] Get/set roles for forms
This commit is contained in:
parent
ff4a3f24bd
commit
62c8531dc1
|
@ -1129,11 +1129,11 @@ define([
|
||||||
this._state.arrKey=data;
|
this._state.arrKey=data;
|
||||||
}
|
}
|
||||||
|
|
||||||
// val = formPr.get_Role();
|
val = formPr.get_Role();
|
||||||
// if (this._state.Role!==val) {
|
if (this._state.Role!==val) {
|
||||||
// this.cmbRole.setValue(val ? val : '');
|
this.cmbRoles.setValue(val ? val : '');
|
||||||
// this._state.Role=val;
|
this._state.Role=val;
|
||||||
// }
|
}
|
||||||
|
|
||||||
val = formPr.get_Key();
|
val = formPr.get_Key();
|
||||||
if (this._state.Key!==val) {
|
if (this._state.Key!==val) {
|
||||||
|
@ -1615,12 +1615,12 @@ define([
|
||||||
|
|
||||||
onRolesChanged: function(combo, record) {
|
onRolesChanged: function(combo, record) {
|
||||||
if (this.api && !this._noApply) {
|
if (this.api && !this._noApply) {
|
||||||
// var props = this._originalProps || new AscCommon.CContentControlPr();
|
var props = this._originalProps || new AscCommon.CContentControlPr();
|
||||||
// var formPr = this._originalFormProps || new AscCommon.CSdtFormPr();
|
var formPr = this._originalFormProps || new AscCommon.CSdtFormPr();
|
||||||
// formPr.put_Role(record.value);
|
formPr.put_Role(record.value);
|
||||||
// props.put_FormPr(formPr);
|
props.put_FormPr(formPr);
|
||||||
// this.api.asc_SetContentControlProperties(props, this.internalId);
|
this.api.asc_SetContentControlProperties(props, this.internalId);
|
||||||
// this.fireEvent('editcomplete', this);
|
this.fireEvent('editcomplete', this);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue