mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-05 21:06:07 -06:00
Merge branch 'dia2' of https://github.com/openclassify/openclassify
This commit is contained in:
commit
6a640cac41
@ -141,4 +141,13 @@ $('.set_category').on('click', function () {
|
|||||||
|
|
||||||
$('#filterModal').find('form').attr("action", '/advs/list');
|
$('#filterModal').find('form').attr("action", '/advs/list');
|
||||||
$('#filterModal').modal('toggle');
|
$('#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);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
@ -36,7 +36,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% include "visiosoft.module.advs::list/partials/list-filter" %}
|
<div id="modalListFilterForm"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user