[mobile] Bug 39380

This commit is contained in:
Julia Svinareva 2019-08-23 11:42:08 +03:00
parent c6babae479
commit 20485598b5
3 changed files with 27 additions and 3 deletions

View file

@ -553,7 +553,15 @@ define([
},
onShowHelp: function () {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_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,15 @@ define([
},
showHelp: function () {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_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,15 @@ define([
'Settings': {
'page:show' : this.onPageShow
, 'settings:showhelp': function(e) {
window.open('{{SUPPORT_URL}}', "_blank");
var url = '{{HELP_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();
}
}