From a661cb1698429a801fb175566f55157f1fa33b6b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 11 May 2017 10:39:58 +0300 Subject: [PATCH] [SSE] Changes for rev. [SSE] Disabled adding sparklines and changing data/location range. --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 029cdaebb..3114a1505 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1748,6 +1748,7 @@ define([ toolbar.lockToolbar(SSE.enumLock.cantHyperlink, (selectionType == Asc.c_oAscSelectionType.RangeShapeText) && (this.api.asc_canAddShapeHyperlink()===false), { array: [toolbar.btnInsertHyperlink]}); + /* need_disable = selectionType != Asc.c_oAscSelectionType.RangeCells && selectionType != Asc.c_oAscSelectionType.RangeCol && selectionType != Asc.c_oAscSelectionType.RangeRow && selectionType != Asc.c_oAscSelectionType.RangeMax; if (this._state.sparklines_disabled !== need_disable) { @@ -1757,6 +1758,7 @@ define([ toolbar.mnuInsertChartPicker.store.at(len-i-1).set({disabled: need_disable}); } } + */ if (editOptionsDisabled) return;