[Mobile] Add customization->help option for show/hide help (default is true)
This commit is contained in:
parent
f964680eb4
commit
9548f926df
|
@ -55,7 +55,8 @@ define([
|
||||||
_canDownload = false,
|
_canDownload = false,
|
||||||
_canDownloadOrigin = false,
|
_canDownloadOrigin = false,
|
||||||
_canReader = false,
|
_canReader = false,
|
||||||
_canAbout = true;
|
_canAbout = true,
|
||||||
|
_canHelp = true;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// el: '.view-main',
|
// el: '.view-main',
|
||||||
|
@ -100,6 +101,10 @@ define([
|
||||||
if (mode.customization && mode.canBrandingExt) {
|
if (mode.customization && mode.canBrandingExt) {
|
||||||
_canAbout = (mode.customization.about!==false);
|
_canAbout = (mode.customization.about!==false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mode.customization) {
|
||||||
|
_canHelp = (mode.customization.help!==false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
rootLayout: function () {
|
rootLayout: function () {
|
||||||
|
@ -123,6 +128,7 @@ define([
|
||||||
if (!_canDownload) $layour.find('#settings-download-as').hide();
|
if (!_canDownload) $layour.find('#settings-download-as').hide();
|
||||||
if (!_canDownloadOrigin) $layour.find('#settings-download').hide();
|
if (!_canDownloadOrigin) $layour.find('#settings-download').hide();
|
||||||
if (!_canAbout) $layour.find('#settings-about').hide();
|
if (!_canAbout) $layour.find('#settings-about').hide();
|
||||||
|
if (!_canHelp) $layour.find('#settings-help').hide();
|
||||||
|
|
||||||
return $layour.html();
|
return $layour.html();
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,8 @@ define([
|
||||||
var isEdit,
|
var isEdit,
|
||||||
canEdit = false,
|
canEdit = false,
|
||||||
canDownload = false,
|
canDownload = false,
|
||||||
canAbout = true;
|
canAbout = true,
|
||||||
|
canHelp = true;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// el: '.view-main',
|
// el: '.view-main',
|
||||||
|
@ -101,6 +102,10 @@ define([
|
||||||
if (mode.customization && mode.canBrandingExt) {
|
if (mode.customization && mode.canBrandingExt) {
|
||||||
canAbout = (mode.customization.about!==false);
|
canAbout = (mode.customization.about!==false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mode.customization) {
|
||||||
|
canHelp = (mode.customization.help!==false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
rootLayout: function () {
|
rootLayout: function () {
|
||||||
|
@ -121,6 +126,7 @@ define([
|
||||||
}
|
}
|
||||||
if (!canDownload) $layour.find('#settings-download').hide();
|
if (!canDownload) $layour.find('#settings-download').hide();
|
||||||
if (!canAbout) $layour.find('#settings-about').hide();
|
if (!canAbout) $layour.find('#settings-about').hide();
|
||||||
|
if (!canHelp) $layour.find('#settings-help').hide();
|
||||||
|
|
||||||
return $layour.html();
|
return $layour.html();
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@ define([
|
||||||
var isEdit,
|
var isEdit,
|
||||||
canEdit = false,
|
canEdit = false,
|
||||||
canDownload = false,
|
canDownload = false,
|
||||||
canAbout = true;
|
canAbout = true,
|
||||||
|
canHelp = true;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// el: '.view-main',
|
// el: '.view-main',
|
||||||
|
@ -106,6 +107,10 @@ define([
|
||||||
if (mode.customization && mode.canBrandingExt) {
|
if (mode.customization && mode.canBrandingExt) {
|
||||||
canAbout = (mode.customization.about!==false);
|
canAbout = (mode.customization.about!==false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mode.customization) {
|
||||||
|
canHelp = (mode.customization.help!==false);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
rootLayout: function () {
|
rootLayout: function () {
|
||||||
|
@ -121,6 +126,7 @@ define([
|
||||||
}
|
}
|
||||||
if (!canDownload) $layout.find('#settings-download').hide();
|
if (!canDownload) $layout.find('#settings-download').hide();
|
||||||
if (!canAbout) $layout.find('#settings-about').hide();
|
if (!canAbout) $layout.find('#settings-about').hide();
|
||||||
|
if (!canHelp) $layout.find('#settings-help').hide();
|
||||||
|
|
||||||
return $layout.html();
|
return $layout.html();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue