diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 031bdf0e9..e886614c7 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -989,7 +989,7 @@ define([ seltype = info.asc_getFlags().asc_getSelectionType(), isSpark = (group == 'menu-chart-group-sparkcolumn' || group == 'menu-chart-group-sparkline' || group == 'menu-chart-group-sparkwin'); - if (seltype!=Asc.c_oAscSelectionType.RangeImage && me.api) { + if (me.api) { var win, props; if (isSpark && (seltype==Asc.c_oAscSelectionType.RangeCells || seltype==Asc.c_oAscSelectionType.RangeCol || seltype==Asc.c_oAscSelectionType.RangeRow || seltype==Asc.c_oAscSelectionType.RangeMax)) { diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 30ebdcb4a..14173f21d 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -644,7 +644,7 @@ define([ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertimage', caption : me.capInsertImage, - lock : [_set.editCell, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth], + lock : [_set.editCell, _set.lostConnect, _set.coAuth], menu : new Common.UI.Menu({ items: [ { caption: me.mniImageFromFile, value: 'file' }, @@ -666,7 +666,7 @@ define([ id : 'tlbtn-insertchart', cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-insertchart', - lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.coAuthText], + lock : [_set.editCell, _set.lostConnect, _set.coAuth, _set.coAuthText], caption : me.capInsertChart, menu : true }); @@ -677,7 +677,7 @@ define([ iconCls : 'btn-insertshape', enableToggle: true, caption : me.capInsertShape, - lock : [_set.editCell, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth], + lock : [_set.editCell, _set.lostConnect, _set.coAuth], menu : new Common.UI.Menu({cls: 'menu-shapes'}) }); @@ -686,7 +686,7 @@ define([ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-text', caption : me.capInsertText, - lock : [_set.editCell, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth], + lock : [_set.editCell, _set.lostConnect, _set.coAuth], enableToggle: true }); @@ -695,7 +695,7 @@ define([ cls : 'btn-toolbar x-huge icon-top', iconCls : 'btn-textart', caption : me.capInsertTextart, - lock : [_set.editCell, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth], + lock : [_set.editCell, _set.lostConnect, _set.coAuth], menu : new Common.UI.Menu({ cls: 'menu-shapes', items: [ @@ -710,7 +710,7 @@ define([ iconCls : 'btn-insertequation', caption : me.capInsertEquation, split : true, - lock : [_set.editCell, _set.selChartText, _set.selImage, _set.lostConnect, _set.coAuth], + lock : [_set.editCell, _set.lostConnect, _set.coAuth], menu : new Common.UI.Menu({cls: 'menu-shapes'}) });