Fix conflict between are-you-sure.js and async tasks

Thanks @luto for reporting and helping to debug
This commit is contained in:
Raphael Michel
2019-12-07 13:23:33 +01:00
committed by GitHub
parent b3b1d09690
commit 3d5cfdd9c7

View File

@@ -157,6 +157,7 @@ $(function () {
"use strict";
$("body").on('submit', 'form[data-asynctask]', function (e) {
e.preventDefault();
$(this).removeClass("dirty); // Avoid problems with are-you-sure.js
if ($("body").data('ajaxing')) {
return;
}