forked from CGM_Public/pretix_original
Fix ajax error not being shown
This commit is contained in:
@@ -60,7 +60,7 @@ var i18nToString = function (i18nstring) {
|
||||
$(document).ajaxError(function (event, jqXHR, settings, thrownError) {
|
||||
waitingDialog.hide();
|
||||
var c = $(jqXHR.responseText).filter('.container');
|
||||
if (jqXHR.responseText.indexOf("<!-- pretix-login-marker -->") !== -1) {
|
||||
if (jqXHR.responseText && jqXHR.responseText.indexOf("<!-- pretix-login-marker -->") !== -1) {
|
||||
location.href = '/control/login?next=' + encodeURIComponent(location.pathname + location.search + location.hash)
|
||||
} else if (c.length > 0) {
|
||||
ajaxErrDialog.show(c.first().html());
|
||||
|
||||
Reference in New Issue
Block a user