Merge pull request #230 from ONLYOFFICE/feature/bug-fix
Feature/bug fix
This commit is contained in:
commit
6fe6b76fef
|
@ -553,7 +553,18 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
onShowHelp: function () {
|
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();
|
this.hideModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,18 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
showHelp: function () {
|
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();
|
PE.getController('Settings').hideModal();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,18 @@ define([
|
||||||
'Settings': {
|
'Settings': {
|
||||||
'page:show' : this.onPageShow
|
'page:show' : this.onPageShow
|
||||||
, 'settings:showhelp': function(e) {
|
, '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();
|
this.hideModal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,9 @@ module.exports = function(grunt) {
|
||||||
}, {
|
}, {
|
||||||
from: /\{\{APP_TITLE_TEXT\}\}/g,
|
from: /\{\{APP_TITLE_TEXT\}\}/g,
|
||||||
to: process.env['APP_TITLE_TEXT'] || 'ONLYOFFICE'
|
to: process.env['APP_TITLE_TEXT'] || 'ONLYOFFICE'
|
||||||
|
}, {
|
||||||
|
from: /\{\{HELP_URL\}\}/g,
|
||||||
|
to: process.env['HELP_URL'] || 'https://helpcenter.onlyoffice.com'
|
||||||
}];
|
}];
|
||||||
|
|
||||||
var helpreplacements = [
|
var helpreplacements = [
|
||||||
|
|
Loading…
Reference in a new issue