From 840dec0d413eac076c7acb350879c592ecee8e7b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 25 Apr 2012 15:33:20 -0700 Subject: [PATCH] Fixed: Details will be removed when a series is deleted and details were open. --- NzbDrone.Web/Views/Series/Index.cshtml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml index 828bd1880..6590e6af8 100644 --- a/NzbDrone.Web/Views/Series/Index.cshtml +++ b/NzbDrone.Web/Views/Series/Index.cshtml @@ -207,8 +207,16 @@ //After we delete a series do this... function afterDelete(seriesId) { - $('.' + seriesId).hide(); - $('.details_' + seriesId).hide(); + var row = $('.' + seriesId); + + if ($(row).hasClass('details-opened')) { + var nextRow = $(row).next('tr'); + if($(nextRow).children('.Details').length > 0) { + $(nextRow).hide(); + } + } + + $(row).hide(); } //After we save do this...