[DE] Add parameter customization->review->hideReviewDisplay for hiding display mode button
This commit is contained in:
parent
311a361f63
commit
630799d928
|
@ -135,6 +135,9 @@
|
||||||
request: bool (default: true), // enable set name
|
request: bool (default: true), // enable set name
|
||||||
label: string (default: "Guest") // postfix for user name
|
label: string (default: "Guest") // postfix for user name
|
||||||
},
|
},
|
||||||
|
review: {
|
||||||
|
hideReviewDisplay: false // hide button Review mode
|
||||||
|
},
|
||||||
chat: true,
|
chat: true,
|
||||||
comments: true,
|
comments: true,
|
||||||
zoom: 100,
|
zoom: 100,
|
||||||
|
|
|
@ -277,7 +277,7 @@ define([
|
||||||
caption: this.txtNext
|
caption: this.txtNext
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!this.appConfig.isRestrictedEdit) {// hide Display mode option for fillForms and commenting mode
|
if (!this.appConfig.isRestrictedEdit && !(this.appConfig.customization && this.appConfig.customization.review && this.appConfig.customization.review.hideReviewDisplay)) {// hide Display mode option for fillForms and commenting mode
|
||||||
var menuTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><%= caption %></div>' +
|
var menuTemplate = _.template('<a id="<%= id %>" tabindex="-1" type="menuitem"><div><%= caption %></div>' +
|
||||||
'<% if (options.description !== null) { %><label style="display: block;color: #a5a5a5;cursor: pointer;white-space: normal;"><%= options.description %></label>' +
|
'<% if (options.description !== null) { %><label style="display: block;color: #a5a5a5;cursor: pointer;white-space: normal;"><%= options.description %></label>' +
|
||||||
'<% } %></a>');
|
'<% } %></a>');
|
||||||
|
|
Loading…
Reference in a new issue