[SSE] Disable changing type for the locked chart.

This commit is contained in:
Julia Radzhabova 2016-12-28 14:54:48 +03:00
parent 14c2a177de
commit cf8ee5878d
2 changed files with 2 additions and 1 deletions

View file

@ -2400,6 +2400,7 @@ define([
clear: [_set.selImage, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.coAuth]
});
toolbar.lockToolbar(SSE.enumLock.coAuthText, is_objLocked);
toolbar.lockToolbar(SSE.enumLock.coAuthText, is_objLocked && (seltype==Asc.c_oAscSelectionType.RangeChart || seltype==Asc.c_oAscSelectionType.RangeChartText), { array: [toolbar.btnInsertChart] } );
}
$('#ce-func-label').toggleClass('disabled', is_image || is_mode_2 || coauth_disable);

View file

@ -505,7 +505,7 @@ define([
id : 'id-toolbar-btn-insertchart',
cls : 'btn-toolbar',
iconCls : 'btn-insertchart',
lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth],
lock : [_set.editCell, _set.selChartText, _set.selShape, _set.selShapeText, _set.selImage, _set.lostConnect, _set.coAuth, _set.coAuthText],
menu : new Common.UI.Menu({
style: 'width: 435px;',
items: [