From 9b5c768a028d7e676863fcffe8e434b1a773d75e Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 12 Sep 2019 17:12:06 +0300 Subject: [PATCH] Fix old customization: don't load skeleton --- apps/documenteditor/main/app/controller/Main.js | 5 +++-- apps/presentationeditor/main/app/controller/Main.js | 5 +++-- apps/spreadsheeteditor/main/app/controller/Main.js | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js index 570309373..8fe6ae0a7 100644 --- a/apps/documenteditor/main/app/controller/Main.js +++ b/apps/documenteditor/main/app/controller/Main.js @@ -168,8 +168,6 @@ define([ window["flat_desine"] = true; this.api = this.getApplication().getController('Viewport').getApi(); - $('#editor_sdk').append('
' + '
'.repeat(20) + '
'); - if (this.api){ this.api.SetDrawingFreeze(true); switch (value) { @@ -359,6 +357,9 @@ define([ if (this.appOptions.location == 'us' || this.appOptions.location == 'ca') Common.Utils.Metric.setDefaultMetric(Common.Utils.Metric.c_MetricUnits.inch); + if (!this.editorConfig.customization || !(this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) + $('#editor_sdk').append('
' + '
'.repeat(20) + '
'); + Common.Controllers.Desktop.init(this.appOptions); }, diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 939e1accc..c5198682e 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -160,8 +160,6 @@ define([ window["flat_desine"] = true; this.api = this.getApplication().getController('Viewport').getApi(); - $('#editor_sdk').append('
'); - if (this.api){ this.api.SetDrawingFreeze(true); this.api.SetThemesPath("../../../../sdkjs/slide/themes/"); @@ -329,6 +327,9 @@ define([ if (this.appOptions.location == 'us' || this.appOptions.location == 'ca') Common.Utils.Metric.setDefaultMetric(Common.Utils.Metric.c_MetricUnits.inch); + if (!this.editorConfig.customization || !(this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) + $('#editor_sdk').append('
'); + Common.Controllers.Desktop.init(this.appOptions); }, diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index fe9585820..1464414da 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -152,8 +152,6 @@ define([ // viewport.applicationUI.setVisible(true); } - $('#editor_sdk').append('
' + '
'.repeat(2) + '
'); - var value = Common.localStorage.getItem("sse-settings-fontrender"); if (value===null) value = window.devicePixelRatio > 1 ? '1' : '3'; Common.Utils.InternalSettings.set("sse-settings-fontrender", value); @@ -359,6 +357,9 @@ define([ if (this.appOptions.location == 'us' || this.appOptions.location == 'ca') Common.Utils.Metric.setDefaultMetric(Common.Utils.Metric.c_MetricUnits.inch); + if (!this.editorConfig.customization || !(this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) + $('#editor_sdk').append('
' + '
'.repeat(2) + '
'); + this.isFrameClosed = (this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge); Common.Controllers.Desktop.init(this.appOptions); }, @@ -869,7 +870,7 @@ define([ } }); } - } else if (!this.appOptions.isDesktopApp && !this.appOptions.canBrandingExt && + } else if (!this.appOptions.isDesktopApp && !this.appOptions.canBrandingExt && !(this.appOptions.isEditDiagram || this.appOptions.isEditMailMerge) && this.editorConfig && this.editorConfig.customization && (this.editorConfig.customization.loaderName || this.editorConfig.customization.loaderLogo)) { Common.UI.warning({ title: this.textPaidFeature,