[DE][PE] Debug commenting in view mode.
This commit is contained in:
parent
afe69c8014
commit
decc79d71c
|
@ -1820,7 +1820,7 @@ define([
|
||||||
var isInChart = (value.imgProps && value.imgProps.value && !_.isNull(value.imgProps.value.get_ChartProperties()));
|
var isInChart = (value.imgProps && value.imgProps.value && !_.isNull(value.imgProps.value.get_ChartProperties()));
|
||||||
|
|
||||||
menuViewUndo.setVisible(me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewUndo.setVisible(me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewUndo.setDisabled(/* !me.api.asc_canUndo()*/);
|
menuViewUndo.setDisabled(!me.api.asc_getCanUndo());
|
||||||
menuViewCopySeparator.setVisible(!isInChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewCopySeparator.setVisible(!isInChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewAddComment.setVisible(!isInChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewAddComment.setVisible(!isInChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewAddComment.setDisabled(value.paraProps && value.paraProps.locked === true);
|
menuViewAddComment.setDisabled(value.paraProps && value.paraProps.locked === true);
|
||||||
|
|
|
@ -1716,7 +1716,7 @@ define([
|
||||||
this.viewModeMenu = new Common.UI.Menu({
|
this.viewModeMenu = new Common.UI.Menu({
|
||||||
initMenu: function (value) {
|
initMenu: function (value) {
|
||||||
menuViewUndo.setVisible(me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewUndo.setVisible(me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewUndo.setDisabled(/* !me.api.asc_canUndo()*/);
|
menuViewUndo.setDisabled(!me.api.asc_getCanUndo());
|
||||||
menuViewCopySeparator.setVisible(!value.isChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewCopySeparator.setVisible(!value.isChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewAddComment.setVisible(!value.isChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
menuViewAddComment.setVisible(!value.isChart && me.api.can_AddQuotedComment() !== false && me.mode.canCoAuthoring && me.mode.canComments);
|
||||||
menuViewAddComment.setDisabled(value.locked);
|
menuViewAddComment.setDisabled(value.locked);
|
||||||
|
|
Loading…
Reference in a new issue