[SSE] Fix Bug 33509.
This commit is contained in:
parent
4939665d9f
commit
09ce1fb212
|
@ -122,19 +122,13 @@ define([
|
||||||
}
|
}
|
||||||
|
|
||||||
var need_disable = info.asc_getLocked(),
|
var need_disable = info.asc_getLocked(),
|
||||||
need_disable_table = (info.asc_getLockedTable()===true);
|
need_disable_table = (info.asc_getLockedTable()===true),
|
||||||
|
need_disable_spark = (info.asc_getLockedSparkline()===true);
|
||||||
|
|
||||||
this.onFocusObject(SelectedObjects, formatTableInfo, sparkLineInfo, need_disable, need_disable_table);
|
this.onFocusObject(SelectedObjects, formatTableInfo, sparkLineInfo, need_disable, need_disable_table, need_disable_spark);
|
||||||
|
|
||||||
if (this._state.prevDisabled != need_disable) {
|
|
||||||
this._state.prevDisabled = need_disable;
|
|
||||||
this._settings.forEach(function(item){
|
|
||||||
item.panel.setLocked(need_disable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onFocusObject: function(SelectedObjects, formatTableInfo, sparkLineInfo, isCellLocked, isTableLocked) {
|
onFocusObject: function(SelectedObjects, formatTableInfo, sparkLineInfo, isCellLocked, isTableLocked, isSparkLocked) {
|
||||||
if (!this.editMode)
|
if (!this.editMode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -181,7 +175,7 @@ define([
|
||||||
if (sparkLineInfo) {
|
if (sparkLineInfo) {
|
||||||
settingsType = Common.Utils.documentSettingsType.Chart;
|
settingsType = Common.Utils.documentSettingsType.Chart;
|
||||||
this._settings[settingsType].props = sparkLineInfo;
|
this._settings[settingsType].props = sparkLineInfo;
|
||||||
this._settings[settingsType].locked = isCellLocked;
|
this._settings[settingsType].locked = isSparkLocked;
|
||||||
this._settings[settingsType].hidden = 0;
|
this._settings[settingsType].hidden = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue