forked from brooksbingham/theme-elegance
fix: add overlay
parent
6eee663002
commit
480d5fc167
|
@ -221,7 +221,7 @@ $(document).ready(() => {
|
||||||
data.rendered_products_header,
|
data.rendered_products_header,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#show-filters').on('click.offcanvas', () => {
|
$('#show-filters').on('click.offcanvas', () => {
|
||||||
$('#product-list-top-filters').show();
|
$('#product-list-top-filters').show();
|
||||||
});
|
});
|
||||||
|
|
|
@ -105,12 +105,18 @@ $(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#show-filters').on('click.offcanvas', () => {
|
$('#show-filters').on('click.offcanvas', () => {
|
||||||
$('#product-list-top-filters').show();
|
$('#overlay').show();
|
||||||
|
$('#product-list-top-filters').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#hide-filters').on('click.offcanvas', () => {
|
$('#hide-filters').on('click.offcanvas', () => {
|
||||||
$('#product-list-top-filters').hide();
|
$('#product-list-top-filters').hide();
|
||||||
|
$('#overlay').hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#overlay').on('click', function() {
|
||||||
|
$('#product-list-top-filters').hide();
|
||||||
|
$('#overlay').hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
function ThAccordion() {}
|
function ThAccordion() {}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue