Skip to content

Commit

Permalink
Fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed May 22, 2021
1 parent a5b1776 commit b0d82e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
3 changes: 1 addition & 2 deletions administrator/templates/atum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,10 @@
<?php if (!$cpanel) : ?>
<?php // Subheader ?>
<?php HTMLHelper::_('bootstrap.collapse', '.toggler-toolbar'); ?>
<button class="navbar-toggler toggler-toolbar toggler-burger collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#subhead-container" aria-controls="subhead" aria-expanded="false" aria-label="<?php echo Text::_('TPL_ATUM_TOOLBAR'); ?>">
<button class="navbar-toggler toggler-toolbar toggler-burger collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#subhead-container" aria-controls="subhead-container" aria-expanded="false" aria-label="<?php echo Text::_('TPL_ATUM_TOOLBAR'); ?>">
<span class="toggler-toolbar-icon"></span>
</button>
<div id="subhead-container" class="subhead mb-3">
<div id="container-collapse" class="container-collapse"></div>
<div class="row">
<div class="col-md-12">
<jdoc:include type="modules" name="toolbar" style="none" />
Expand Down
18 changes: 5 additions & 13 deletions build/media_source/mod_menu/js/admin-menu.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,11 @@ if (sidebar && !sidebar.getAttribute('data-hidden')) {
elem.classList.remove('child-open');
}

if (wrapper.classList.contains('closed')) {
window.dispatchEvent(new CustomEvent('joomla:menu-toggle', {
detail: 'closed',
bubbles: true,
cancelable: true,
}));
} else {
window.dispatchEvent(new CustomEvent('joomla:menu-toggle', {
detail: 'open',
bubbles: true,
cancelable: true,
}));
}
window.dispatchEvent(new CustomEvent('joomla:menu-toggle', {
detail: wrapper.classList.contains('closed') ? 'closed' : 'open',
bubbles: true,
cancelable: true,
}));
});

// Sidebar Nav
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const small = window.matchMedia('(max-width: 575.98px)');
const tablet = window.matchMedia('(min-width: 576px) and (max-width:991.98px)');
const menu = document.querySelector('.sidebar-menu');
const sidebarNav = document.querySelector('.sidebar-nav');
const subhead = document.querySelector('.subhead');
const subhead = document.querySelector('#subhead-container');
const wrapper = document.querySelector('.wrapper');
const sidebarWrapper = document.querySelector('.sidebar-wrapper');
const logo = document.querySelector('.logo');
Expand Down Expand Up @@ -224,7 +224,10 @@ reactToResize();
subheadScrolling();
if (mobile.matches) {
changeLogo('closed');
if (subhead) subhead.classList.remove('show');
if (subhead) {
subhead.classList.remove('show');
subhead.classList.add('collapse');
}
}
if (!navigator.cookieEnabled) {
Joomla.renderMessages({ error: [Joomla.Text._('JGLOBAL_WARNCOOKIES')] }, undefined, false, 6000);
Expand Down

0 comments on commit b0d82e0

Please sign in to comment.