Merge pull request #230 from ONLYOFFICE/feature/bug-fix

Feature/bug fix
This commit is contained in:
Julia Radzhabova 2019-08-23 12:43:00 +03:00 committed by GitHub
commit 6fe6b76fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 3 deletions

View file

@ -553,7 +553,18 @@ define([
},
onShowHelp: function () {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_URL}}';
if (url.charAt(url.length-1) !== '/') {
url += '/';
}
if (Common.SharedSettings.get('android')) {
url+='mobile-applications/documents/android/index.aspx';
} else if (Common.SharedSettings.get('sailfish')) {
url+='mobile-applications/documents/sailfish/index.aspx';
} else {
url+='mobile-applications/documents/index.aspx';
}
window.open(url, "_blank");
this.hideModal();
},

View file

@ -180,7 +180,18 @@ define([
},
showHelp: function () {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_URL}}';
if (url.charAt(url.length-1) !== '/') {
url += '/';
}
if (Common.SharedSettings.get('android')) {
url+='mobile-applications/documents/android/index.aspx';
} else if (Common.SharedSettings.get('sailfish')) {
url+='mobile-applications/documents/sailfish/index.aspx';
} else {
url+='mobile-applications/documents/index.aspx';
}
window.open(url, "_blank");
PE.getController('Settings').hideModal();
},

View file

@ -112,7 +112,18 @@ define([
'Settings': {
'page:show' : this.onPageShow
, 'settings:showhelp': function(e) {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_URL}}';
if (url.charAt(url.length-1) !== '/') {
url += '/';
}
if (Common.SharedSettings.get('android')) {
url+='mobile-applications/documents/android/index.aspx';
} else if (Common.SharedSettings.get('sailfish')) {
url+='mobile-applications/documents/sailfish/index.aspx';
} else {
url+='mobile-applications/documents/index.aspx';
}
window.open(url, "_blank");
this.hideModal();
}
}

View file

@ -43,6 +43,9 @@ module.exports = function(grunt) {
}, {
from: /\{\{APP_TITLE_TEXT\}\}/g,
to: process.env['APP_TITLE_TEXT'] || 'ONLYOFFICE'
}, {
from: /\{\{HELP_URL\}\}/g,
to: process.env['HELP_URL'] || 'https://helpcenter.onlyoffice.com'
}];
var helpreplacements = [