This commit is contained in:
Diatrex 2020-06-04 12:25:48 +03:00
commit 6a640cac41
2 changed files with 11 additions and 2 deletions

View File

@ -141,4 +141,13 @@ $('.set_category').on('click', function () {
$('#filterModal').find('form').attr("action", '/advs/list');
$('#filterModal').modal('toggle');
})
});
// Move filter on small screen
$(window).resize(function() {
const width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
if (width <= 575) {
const detach = $('#listFilterForm').detach();
$('#modalListFilterForm').append(detach);
}
});

View File

@ -36,7 +36,7 @@
{% endif %}
</a>
</div>
{% include "visiosoft.module.advs::list/partials/list-filter" %}
<div id="modalListFilterForm"></div>
</div>
</div>
</div>