[SSE] Disable changing type for the locked chart.
This commit is contained in:
parent
14c2a177de
commit
cf8ee5878d
|
@ -2400,6 +2400,7 @@ define([
|
||||||
clear: [_set.selImage, _set.selChart, _set.selChartText, _set.selShape, _set.selShapeText, _set.coAuth]
|
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);
|
||||||
|
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);
|
$('#ce-func-label').toggleClass('disabled', is_image || is_mode_2 || coauth_disable);
|
||||||
|
|
|
@ -505,7 +505,7 @@ define([
|
||||||
id : 'id-toolbar-btn-insertchart',
|
id : 'id-toolbar-btn-insertchart',
|
||||||
cls : 'btn-toolbar',
|
cls : 'btn-toolbar',
|
||||||
iconCls : 'btn-insertchart',
|
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({
|
menu : new Common.UI.Menu({
|
||||||
style: 'width: 435px;',
|
style: 'width: 435px;',
|
||||||
items: [
|
items: [
|
||||||
|
|
Loading…
Reference in a new issue