Skip to content
Snippets Groups Projects
Verified Commit c0937ba5 authored by Julian's avatar Julian Committed by Jonathan Weth
Browse files

Toggle card view using JS

(cherry picked from commit ba7b826b)
parent ba08f024
No related branches found
No related tags found
1 merge request!246Prepare release 2.0rc7
......@@ -426,6 +426,14 @@
$("#id_group").val("").formSelect();
});
});
$(".unfold-trigger").click(function (event) {
console.log(event);
let target = event.target;
target.classList.toggle("vertical");
let next_container = $(target).parent().next(".horizontal-scroll-container");
if (next_container.length >= 1){
next_container[0].classList.toggle("vertical");
}
})
</script>
{% endblock %}
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