mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix conflict between are-you-sure.js and async tasks
Thanks @luto for reporting and helping to debug
This commit is contained in:
@@ -157,6 +157,7 @@ $(function () {
|
|||||||
"use strict";
|
"use strict";
|
||||||
$("body").on('submit', 'form[data-asynctask]', function (e) {
|
$("body").on('submit', 'form[data-asynctask]', function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
$(this).removeClass("dirty); // Avoid problems with are-you-sure.js
|
||||||
if ($("body").data('ajaxing')) {
|
if ($("body").data('ajaxing')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user