mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Auto-expand variation description when variation is selected
This commit is contained in:
@@ -144,6 +144,11 @@ $(function () {
|
|||||||
$('.toggle-variation-description').click(function () {
|
$('.toggle-variation-description').click(function () {
|
||||||
$(this).parent().find('.addon-variation-description').slideToggle();
|
$(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
|
// Copy answers
|
||||||
$(".js-copy-answers").click(function (e) {
|
$(".js-copy-answers").click(function (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user