From c1e2fb36ba7ecc8608f4ef5ea39561fd91497277 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 16 Jul 2019 11:53:43 +0200 Subject: [PATCH] Auto-expand variation description when variation is selected --- src/pretix/static/pretixpresale/js/ui/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pretix/static/pretixpresale/js/ui/main.js b/src/pretix/static/pretixpresale/js/ui/main.js index c850173f1f..37a74894b3 100644 --- a/src/pretix/static/pretixpresale/js/ui/main.js +++ b/src/pretix/static/pretixpresale/js/ui/main.js @@ -144,6 +144,11 @@ $(function () { $('.toggle-variation-description').click(function () { $(this).parent().find('.addon-variation-description').slideToggle(); }); + $('input[type=radio][description]').change(function () { + if ($(this).prop("checked")) { + $(this).parent().parent().find('.addon-variation-description').stop().slideDown(); + } + }); // Copy answers $(".js-copy-answers").click(function (e) {