Revert "common.js: show error on ajax failures." (#3640)
This reverts commit ad66b8abc9.
This commit is contained in:
@@ -39,11 +39,6 @@ $(function() {
|
|||||||
location.reload();
|
location.reload();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// triggered by rails when a `link_to ..., remote: true` call fails.
|
|
||||||
$(document).on("ajax:error", function (event, xhr, status, error) {
|
|
||||||
Danbooru.error("Error: " + xhr.status + " " + xhr.statusText);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
var Danbooru = {};
|
var Danbooru = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user