mirror of
https://github.com/openclassify/openclassify.git
synced 2026-03-06 15:25:23 -06:00
#1619 Fix listing page warnings
This commit is contained in:
parent
b7b931a586
commit
a9d67da8af
@ -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