mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Allow to bulk-select many tickets to check in or out (#2678)
* Allow to bulk-select many tickets to check in or out * Update tests * Add permission test * Update src/pretix/control/templates/pretixcontrol/checkin/index.html Co-authored-by: Richard Schreiber <wiffbi@gmail.com> * Update src/pretix/static/pretixbase/js/asynctask.js Co-authored-by: Richard Schreiber <wiffbi@gmail.com> * Remove console.warn * Simplify stuff * minor refactor * fix missing checked-out success message Co-authored-by: Richard Schreiber <wiffbi@gmail.com> Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
@@ -218,14 +218,17 @@ $(function () {
|
||||
'this page and try again.'
|
||||
));
|
||||
|
||||
|
||||
console.log($(this).get(0))
|
||||
var formData = new FormData($(this).get(0))
|
||||
var formData = new FormData(this);
|
||||
formData.append('ajax', '1');
|
||||
// Not supported on IE, may lead to wrong results, but we don't support IE in the backend anymore
|
||||
var submitter = e.originalEvent.submitter;
|
||||
if (submitter && submitter.name) {
|
||||
formData.append(submitter.name, submitter.value);
|
||||
}
|
||||
$.ajax(
|
||||
{
|
||||
'type': 'POST',
|
||||
'url': $(this).attr('action'),
|
||||
'url': this.action,
|
||||
'data': formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
|
||||
Reference in New Issue
Block a user