[mobile] Display macros settings in view mode

This commit is contained in:
JuliaSvinareva 2020-06-03 21:06:04 +03:00
parent 2ffcc4b717
commit 3ceab39e48
4 changed files with 4 additions and 5 deletions

View file

@ -770,7 +770,7 @@
</ul> </ul>
</div> </div>
<div class="list-block"> <div class="list-block display-view">
<ul> <ul>
<li> <li>
<a id="settings-macros" class="item-link item-content" data-page="#macros-settings-view"> <a id="settings-macros" class="item-link item-content" data-page="#macros-settings-view">

View file

@ -476,7 +476,6 @@
<div class="page-content"> <div class="page-content">
<div class="content-block-title"><%= scope.textUnitOfMeasurement %></div> <div class="content-block-title"><%= scope.textUnitOfMeasurement %></div>
<div class="list-block"> <div class="list-block">
<ul> <ul>
<li> <li>
<label class="label-radio item-content"> <label class="label-radio item-content">
@ -522,7 +521,7 @@
</div> </div>
</ul> </ul>
</div> </div>
<div class="list-block"> <div class="list-block display-view">
<ul> <ul>
<li> <li>
<a id="settings-macros" class="item-link item-content" data-page="#settings-macros-view"> <a id="settings-macros" class="item-link item-content" data-page="#settings-macros-view">

View file

@ -131,7 +131,6 @@ define([
$layour.find('#settings-readermode').hide(); $layour.find('#settings-readermode').hide();
$layour.find('#settings-search .item-title').text(this.textFindAndReplace) $layour.find('#settings-search .item-title').text(this.textFindAndReplace)
} else { } else {
$layour.find('#settings-application').hide();
$layour.find('#settings-spellcheck').hide(); $layour.find('#settings-spellcheck').hide();
$layour.find('#settings-presentation-setup').hide(); $layour.find('#settings-presentation-setup').hide();
$layour.find('#settings-readermode input:checkbox') $layour.find('#settings-readermode input:checkbox')
@ -220,6 +219,7 @@ define([
showSetApp: function () { showSetApp: function () {
this.showPage('#settings-application-view'); this.showPage('#settings-application-view');
$('.page[data-page=settings-application-view] .page-content > :not(.display-view)').hide();
if (isShowMacros) { if (isShowMacros) {
$('#settings-macros').single('click', _.bind(this.showMacros, this)); $('#settings-macros').single('click', _.bind(this.showMacros, this));
} }

View file

@ -579,7 +579,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="list-block"> <div class="list-block display-view">
<ul> <ul>
<li> <li>
<a id="settings-macros" class="item-link item-content" data-page="#settings-macros-view"> <a id="settings-macros" class="item-link item-content" data-page="#settings-macros-view">