mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Fix: Grids will no longer display alerts when navigating to another page while the grid is still loading.
This commit is contained in:
parent
68e1a0bc4d
commit
2635ff9bee
11 changed files with 58 additions and 3 deletions
|
@ -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,
|
||||
|
|
4
NzbDrone.Web/Scripts/NzbDrone/grid.js
Normal file
4
NzbDrone.Web/Scripts/NzbDrone/grid.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
function grid_onError(e) {
|
||||
//Suppress the alert
|
||||
e.preventDefault();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue