1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-25 01:11:43 +00:00

After adding all existing series, show no series message to user.

This commit is contained in:
Mark McDowall 2012-02-02 23:08:50 -08:00
parent 65417bd8ec
commit 2fc561f195

View file

@ -19,7 +19,7 @@ $(".masterQualitySelector").live('change', function () {
}); });
}); });
$(".addExistingButton").live('click', function () { $(".addExistingButton").live('click', function() {
var root = $(this).parents(".existingSeries"); var root = $(this).parents(".existingSeries");
var title = $(this).siblings(".seriesLookup").val(); var title = $(this).siblings(".seriesLookup").val();
var seriesId = $(this).siblings(".seriesId").val(); var seriesId = $(this).siblings(".seriesId").val();
@ -42,11 +42,13 @@ $(".addExistingButton").live('click', function () {
type: "POST", type: "POST",
url: addSeriesUrl, url: addSeriesUrl,
data: jQuery.param({ path: path, seriesName: title, seriesId: seriesId, qualityProfileId: qualityId }), data: jQuery.param({ path: path, seriesName: title, seriesId: seriesId, qualityProfileId: qualityId }),
error: function (req, status, error) { error: function(req, status, error) {
alert("Sorry! We could not add " + path + " at this time. " + error); alert("Sorry! We could not add " + path + " at this time. " + error);
}, },
success: function () { success: function() {
root.hide('highlight', 'fast'); root.hide('highlight', 'fast');
if ($('.existingSeries').filter(":visible").length === 1)
reloadExistingSeries();
} }
}); });