diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index 357502c19..b6a03bbed 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -341,6 +341,9 @@ define([ return native[name].apply(this, args); } }, + helpUrl: function () { + return 'https://download.onlyoffice.com/install/desktop/editors/help/v7.2.0-1/apps/documenteditor/main/resources/help'; + } }; }; diff --git a/apps/common/main/resources/help/download.html b/apps/common/main/resources/help/download.html new file mode 100644 index 000000000..6bebaa2aa --- /dev/null +++ b/apps/common/main/resources/help/download.html @@ -0,0 +1,19 @@ + + + + + +
+

There is no help installed

+

please, download it from www.onlyoffice.com

+
+ + \ No newline at end of file diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index e03640684..caa4bb710 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -2087,8 +2087,19 @@ define([ store.url = 'resources/help/{{DEFAULT_LANG}}/Contents.json'; store.fetch(config); } else { - me.urlPref = 'resources/help/{{DEFAULT_LANG}}/'; - store.reset(me.en_data); + if ( Common.Controllers.Desktop.isActive() ) { + if ( store.contentLang === '{{DEFAULT_LANG}}' ) + me.iFrame.src = '../../common/main/resources/help/download.html'; + else { + store.contentLang = store.contentLang === lang ? '{{DEFAULT_LANG}}' : lang; + me.urlPref = `${Common.Controllers.Desktop.helpUrl()}/${lang}/`; + store.url = `${me.urlPref}/Contents.json`; + store.fetch(config); + } + } else { + me.urlPref = 'resources/help/{{DEFAULT_LANG}}/'; + store.reset(me.en_data); + } } }, success: function () {