mirror of
https://github.com/pretix/pretix.git
synced 2026-10-02 19:24:42 +00:00
Use fragment_product_list in voucher redemption view (Z#23246929) (#6567)
* Use fragment_product_list in voucher redemption view (Z#23246929) * Formatting * Fix usage in templates * Review comments * handle form prefix in fragment_product_list.html --------- Co-authored-by: Raphael Michel <michel@pretix.eu>
This commit is contained in:
@@ -713,7 +713,7 @@ $(function () {
|
||||
$('[data-checked-onchange]').each(function () {
|
||||
let countInput = this
|
||||
$('#' + this.getAttribute('data-checked-onchange')).on('input', function () {
|
||||
if (countInput.type === 'checkbox') {
|
||||
if (countInput.type === 'checkbox' || countInput.type == "radio") {
|
||||
if (countInput.checked) return
|
||||
countInput.checked = true
|
||||
} else if (countInput.type === 'number' && !countInput.valueAsNumber) {
|
||||
|
||||
Reference in New Issue
Block a user