Skip to content
Snippets Groups Projects
Commit 71741164 authored by Chris Lawton's avatar Chris Lawton
Browse files

move toggle actions panel in to it's own partial

parent d787546f
No related branches found
No related tags found
No related merge requests found
import $ from './../globals';
export default function toggleActionsPanel(){
$('.js-actions-toggle').click(function(e) {
e.preventDefault();
this.classList.toggle('is-active');
this.nextElementSibling.classList.toggle('is-visible');
});
}
......@@ -4,6 +4,7 @@ import Search from './components/search';
import MobileSearch from './components/mobile-search';
import Tabs from './components/tabs';
import listInputFiles from './components/list-input-files';
import toggleActionsPanel from './components/toggle-actions-panel';
import '@fancyapps/fancybox';
(function ($) {
......@@ -31,11 +32,7 @@ import '@fancyapps/fancybox';
listInputFiles();
// Show actions sidebar on mobile
$('.js-actions-toggle').click(function(e) {
e.preventDefault();
this.classList.toggle('is-active');
this.nextElementSibling.classList.toggle('is-visible');
});
toggleActionsPanel();
// Fancybox global options
$('[data-fancybox]').fancybox({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment