mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Better client side error handling
This commit is contained in:
parent
08d811f7c3
commit
02cf23721a
8 changed files with 12 additions and 20 deletions
|
@ -46,7 +46,6 @@ $(".addExistingButton").live('click', function () {
|
|||
data: jQuery.param({ path: path, seriesName: title, seriesId: seriesId, qualityProfileId: qualityId, startDate: date }),
|
||||
error: function (req, status, error) {
|
||||
$(button).removeAttr('disabled');
|
||||
alert("Sorry! We could not add " + path + " at this time. " + error);
|
||||
},
|
||||
success: function() {
|
||||
root.hide('highlight', 'fast');
|
||||
|
@ -137,7 +136,6 @@ $('#saveNewSeries').live('click', function () {
|
|||
data: jQuery.param({ path: path, seriesName: seriesTitle, seriesId: seriesId, qualityProfileId: qualityId, startDate: date }),
|
||||
error: function (req, status, error) {
|
||||
$('#saveNewSeries').removeAttr('disabled');
|
||||
alert("Sorry! We could not add " + path + " at this time. " + error);
|
||||
},
|
||||
success: function () {
|
||||
$('#saveNewSeries').removeAttr('disabled');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue