Commit 09ce1fb2 authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] Fix Bug 33509.

parent 4939665d
...@@ -122,19 +122,13 @@ define([ ...@@ -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([ ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment