mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fix: Grids will no longer display alerts when navigating to another page while the grid is still loading.
This commit is contained in:
@@ -32,9 +32,10 @@
|
||||
|
||||
});
|
||||
|
||||
jqXHR.error(function (xhr, ajaxOptions, thrownError) {
|
||||
jqXHR.error(function (xhr, textStatus, thrownError) {
|
||||
//ignore notification errors.
|
||||
if (this.url.indexOf("/notification/Comet") !== 0) {
|
||||
alert("Status: " + textStatus + ", Error: " + thrownError);
|
||||
$.gritter.add({
|
||||
title: 'Request failed',
|
||||
text: this.url,
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
function grid_onError(e) {
|
||||
//Suppress the alert
|
||||
e.preventDefault();
|
||||
}
|
||||
Reference in New Issue
Block a user