forked from CGM_Public/pretix_original
* Data model and migration * Some backwards compatibility * CRUD for checkin lists * Show and perform checkins * Correct numbers in table and dashboard widget * event creation and cloning * Allow to link specific exports and pass options per query * Play with the CSV export * PDF export * Collapse exports by default * Improve PDF exporter * Addon stuff * Subevent stuff, pretixdroid tests * pretixdroid tests * Add CRUD API * Test compatibility * Fix test * DB-independent sorting behavior * Add CRUD and coyp tests * Re-enable pretixdroid plugin * pretixdroid config * Tests & fixes
This commit is contained in:
16
src/pretix/static/pretixcontrol/js/ui/subevent.js
Normal file
16
src/pretix/static/pretixcontrol/js/ui/subevent.js
Normal file
@@ -0,0 +1,16 @@
|
||||
/*globals $, Morris, gettext*/
|
||||
$(function () {
|
||||
if (!$("div[data-formset-prefix=checkinlist_set]").length) {
|
||||
return;
|
||||
}
|
||||
|
||||
var $namef = $("input[id^=id_name]").first();
|
||||
var lastValue = $namef.val();
|
||||
$namef.change(function () {
|
||||
var field = $("div[data-formset-prefix=checkinlist_set] input[id$=name]").first();
|
||||
if (field.val() === lastValue) {
|
||||
lastValue = $(this).val();
|
||||
field.val(lastValue);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user