Use <details> and <summary> for variations

This commit is contained in:
Raphael Michel
2018-05-10 11:11:29 +02:00
parent c3a45a1584
commit bfff001752
5 changed files with 71 additions and 9 deletions

View File

@@ -103,11 +103,7 @@ $(function () {
});
$(".js-only").removeClass("js-only");
$(".js-hidden").hide();
$(".variations-collapsed").hide();
$("a[data-toggle=variations]").click(function (e) {
$(this).closest(".item-with-variations").find(".variations").slideToggle();
e.preventDefault();
});
$("div.collapsed").removeClass("collapsed").addClass("collapse");
$(".has-error, .alert-danger").each(function () {
$(this).closest("div.panel-collapse").collapse("show");