[Mobile] Add customization->help option for show/hide help (default is true)

This commit is contained in:
Julia Radzhabova 2018-04-19 17:43:19 +03:00
parent f964680eb4
commit 9548f926df
3 changed files with 21 additions and 3 deletions

View file

@ -55,7 +55,8 @@ define([
_canDownload = false,
_canDownloadOrigin = false,
_canReader = false,
_canAbout = true;
_canAbout = true,
_canHelp = true;
return {
// el: '.view-main',
@ -100,6 +101,10 @@ define([
if (mode.customization && mode.canBrandingExt) {
_canAbout = (mode.customization.about!==false);
}
if (mode.customization) {
_canHelp = (mode.customization.help!==false);
}
},
rootLayout: function () {
@ -123,6 +128,7 @@ define([
if (!_canDownload) $layour.find('#settings-download-as').hide();
if (!_canDownloadOrigin) $layour.find('#settings-download').hide();
if (!_canAbout) $layour.find('#settings-about').hide();
if (!_canHelp) $layour.find('#settings-help').hide();
return $layour.html();
}

View file

@ -53,7 +53,8 @@ define([
var isEdit,
canEdit = false,
canDownload = false,
canAbout = true;
canAbout = true,
canHelp = true;
return {
// el: '.view-main',
@ -101,6 +102,10 @@ define([
if (mode.customization && mode.canBrandingExt) {
canAbout = (mode.customization.about!==false);
}
if (mode.customization) {
canHelp = (mode.customization.help!==false);
}
},
rootLayout: function () {
@ -121,6 +126,7 @@ define([
}
if (!canDownload) $layour.find('#settings-download').hide();
if (!canAbout) $layour.find('#settings-about').hide();
if (!canHelp) $layour.find('#settings-help').hide();
return $layour.html();
}

View file

@ -52,7 +52,8 @@ define([
var isEdit,
canEdit = false,
canDownload = false,
canAbout = true;
canAbout = true,
canHelp = true;
return {
// el: '.view-main',
@ -106,6 +107,10 @@ define([
if (mode.customization && mode.canBrandingExt) {
canAbout = (mode.customization.about!==false);
}
if (mode.customization) {
canHelp = (mode.customization.help!==false);
}
},
rootLayout: function () {
@ -121,6 +126,7 @@ define([
}
if (!canDownload) $layout.find('#settings-download').hide();
if (!canAbout) $layout.find('#settings-about').hide();
if (!canHelp) $layout.find('#settings-help').hide();
return $layout.html();
}