aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-04-21 23:19:17 +0200
committerMario Vavti <mario@mariovavti.com>2016-04-21 23:19:17 +0200
commit96d19c09f39b4d022741f9ba4def6a68c768946d (patch)
tree4ac562fa486da5ec95f5f9141defa07c76bac17f /view/tpl
parentd7f4bfedd5164596504d17b1ef4b8597a1304d98 (diff)
downloadvolse-hubzilla-96d19c09f39b4d022741f9ba4def6a68c768946d.tar.gz
volse-hubzilla-96d19c09f39b4d022741f9ba4def6a68c768946d.tar.bz2
volse-hubzilla-96d19c09f39b4d022741f9ba4def6a68c768946d.zip
fix help button for collapsed state
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/nav.tpl4
-rw-r--r--view/tpl/nav_header.tpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index 8fc6279d3..69dd77368 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -11,7 +11,7 @@
<button id="expand-aside" type="button" class="navbar-toggle" data-toggle="offcanvas" data-target="#region_1">
<i class="icon-circle-arrow-right" id="expand-aside-icon"></i>
</button>
- <a class="navbar-toggle" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="help-btn"{{if $nav.help.6}} onclick="return false;"{{/if}}>
+ <a class="navbar-toggle" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}_collapsed"{{if $nav.help.6}} onclick="return false;"{{/if}}>
<i class="icon-question"></i>
</a>
{{if $userinfo}}
@@ -191,7 +191,7 @@
{{/if}}
{{if $nav.help}}
- <li class="{{$sel.help}}" class="hidden-xs">
+ <li class="{{$sel.help}} hidden-xs">
<a class="{{$nav.help.2}}" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}"{{if $nav.help.6}} onclick="return false;"{{/if}}><i class="icon-question"></i></a>
</li>
{{/if}}
diff --git a/view/tpl/nav_header.tpl b/view/tpl/nav_header.tpl
index be990765c..27713b55b 100644
--- a/view/tpl/nav_header.tpl
+++ b/view/tpl/nav_header.tpl
@@ -13,14 +13,14 @@
&& container.hasClass('help-content-open'))
||
(
- ($('#help_nav_btn').is(e.target) || $('#help_nav_btn').has(e.target).length !== 0)
+ ($('#help_nav_btn, #help_nav_btn_collapsed').is(e.target) || $('#help_nav_btn, #help_nav_btn_collapsed').has(e.target).length !== 0)
&& container.hasClass('help-content-open')
)) {
container.removeClass('help-content-open');
$('main').removeClass('help-content-open');
$('main').css('top', '')
}
- else if (($('#help_nav_btn').is(e.target) || $('#help_nav_btn').has(e.target).length !== 0)
+ else if (($('#help_nav_btn, #help_nav_btn_collapsed').is(e.target) || $('#help_nav_btn, #help_nav_btn_collapsed').has(e.target).length !== 0)
&& !container.hasClass('help-content-open')) {
$('#help-content').addClass('help-content-open');
$('main').removeClass('help-content-open');