[DE] Open viewer context menu in the view mode for review.

This commit is contained in:
Julia Radzhabova 2017-08-23 23:22:33 +03:00
parent feac63e93e
commit 207376bb0d
2 changed files with 4 additions and 1 deletions

View file

@ -520,7 +520,7 @@ define([
app.getController('Toolbar').DisableToolbar(disable, false, true);
app.getController('RightMenu').SetDisabled(disable, false);
app.getController('Statusbar').getView('Statusbar').SetDisabled(disable);
// app.getController('DocumentHolder').getView('DocumentHolder').SetDisabled(disable);
app.getController('DocumentHolder').getView().SetDisabled(disable);
app.getController('LeftMenu').leftMenu.btnComments.setDisabled(disable);
if (this.view) {

View file

@ -189,6 +189,9 @@ define([
var fillViewMenuProps = function(selectedElements) {
if (!selectedElements || !_.isArray(selectedElements)) return;
if (!me.viewModeMenu)
me.createDelayedElementsViewer();
var menu_props = {},
menu_to_show = me.viewModeMenu,
noobject = true;