forked from CGM_Public/pretix_original
Allow to redeem a voucher for an existing cart (#1517)
* Allow to redeem a voucher for an existing cart * Bundle behaviour
This commit is contained in:
@@ -70,4 +70,13 @@ $(function () {
|
||||
if ($("#cart-deadline").length) {
|
||||
cart.init();
|
||||
}
|
||||
|
||||
$(".apply-voucher").hide();
|
||||
$(".apply-voucher-toggle").click(function (e) {
|
||||
$(".apply-voucher-toggle").hide();
|
||||
$(".apply-voucher").show();
|
||||
$(".apply-voucher input[ŧype=text]").first().focus();
|
||||
e.preventDefault();
|
||||
return true;
|
||||
});
|
||||
});
|
||||
|
||||
@@ -73,6 +73,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.apply-voucher {
|
||||
input {
|
||||
height: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
@media(max-width: $screen-sm-max) {
|
||||
.cart-row {
|
||||
.download-mobile {
|
||||
|
||||
Reference in New Issue
Block a user