mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add variation descriptions and allow to order addons
This commit is contained in:
@@ -20,6 +20,7 @@ $(function () {
|
||||
$($(this).attr("data-target")).collapse('show');
|
||||
});
|
||||
$(".js-only").removeClass("js-only");
|
||||
$(".js-hidden").hide();
|
||||
$(".variations-collapsed").hide();
|
||||
$("a[data-toggle=variations]").click(function (e) {
|
||||
$(this).parent().parent().parent().find(".variations").slideToggle();
|
||||
@@ -37,6 +38,12 @@ $(function () {
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
|
||||
$("#ajaxerr").on("click", ".ajaxerr-close", ajaxErrDialog.hide);
|
||||
|
||||
// AddOns
|
||||
$('.addon-variation-description').hide();
|
||||
$('.toggle-variation-description').click(function () {
|
||||
$(this).parent().find('.addon-variation-description').slideToggle();
|
||||
});
|
||||
|
||||
// Copy answers
|
||||
$(".js-copy-answers").click(function (e) {
|
||||
|
||||
@@ -47,9 +47,18 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.radio .variation-description {
|
||||
padding-left: 20px;
|
||||
}
|
||||
.variation-description {
|
||||
color: lighten($text-color, 25%);
|
||||
}
|
||||
.voucher-row {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.toggle-variation-description {
|
||||
cursor: pointer;
|
||||
}
|
||||
#voucher-toggle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user