Add support system plugins to web
This commit is contained in:
parent
cf683f829d
commit
51bd550fc1
|
@ -156,6 +156,7 @@ define([
|
|||
variation.set_Icons(itemVar.get('icons'));
|
||||
variation.set_Visual(itemVar.get('isVisual'));
|
||||
variation.set_CustomWindow(itemVar.get('isCustomWindow'));
|
||||
variation.set_System(itemVar.get('isSystem'));
|
||||
variation.set_Viewer(itemVar.get('isViewer'));
|
||||
variation.set_EditorsSupport(itemVar.get('EditorsSupport'));
|
||||
variation.set_Modal(itemVar.get('isModal'));
|
||||
|
|
|
@ -55,6 +55,7 @@ define([
|
|||
url: "",
|
||||
index: 0,
|
||||
icons: undefined,
|
||||
isSystem: false,
|
||||
isViewer: false,
|
||||
isDisplayedInViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
|
|
@ -2099,7 +2099,7 @@ define([
|
|||
var variationsArr = [],
|
||||
pluginVisible = false;
|
||||
item.variations.forEach(function(itemVar){
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'word');
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'word') && !itemVar.isSystem;
|
||||
if ( visible ) pluginVisible = true;
|
||||
|
||||
if (item.isUICustomizer ) {
|
||||
|
|
|
@ -1845,7 +1845,7 @@ define([
|
|||
var variationsArr = [],
|
||||
pluginVisible = false;
|
||||
item.variations.forEach(function(itemVar){
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'slide');
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'slide') && !itemVar.isSystem;
|
||||
if ( visible ) pluginVisible = true;
|
||||
|
||||
if ( item.isUICustomizer ) {
|
||||
|
|
|
@ -2042,7 +2042,7 @@ define([
|
|||
var variationsArr = [],
|
||||
pluginVisible = false;
|
||||
item.variations.forEach(function(itemVar){
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'cell');
|
||||
var visible = (isEdit || itemVar.isViewer && (itemVar.isDisplayedInViewer!==false)) && _.contains(itemVar.EditorsSupport, 'cell') && !itemVar.isSystem;
|
||||
if ( visible ) pluginVisible = true;
|
||||
|
||||
if ( item.isUICustomizer ) {
|
||||
|
|
Loading…
Reference in a new issue