mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
AJAX: Do not throw error on "abort" in Safari
This commit is contained in:
@@ -65,7 +65,8 @@ $(document).ajaxError(function (event, jqXHR, settings, thrownError) {
|
||||
var c = $(jqXHR.responseText).filter('.container');
|
||||
if (c.length > 0) {
|
||||
ajaxErrDialog.show(c.first().html());
|
||||
} else if (thrownError !== "abort") {
|
||||
} else if (thrownError !== "abort" && thrownError !== "") {
|
||||
console.log(thrownError);
|
||||
alert(gettext('Unknown error.'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user