From 6869e9ea11ecc00863ae7169ac80be1012b97555 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 13 Mar 2012 13:01:30 -0700 Subject: [PATCH] Fix: Saving series will update the grid row with the new quality. Fix: Added tooltips to Edit and Delete series buttons on grid. --- NzbDrone.Web/Views/Series/Index.cshtml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml index ae6692fd5..8991b8136 100644 --- a/NzbDrone.Web/Views/Series/Index.cshtml +++ b/NzbDrone.Web/Views/Series/Index.cshtml @@ -153,7 +153,7 @@ } }, //Title { sWidth: '100px', "mDataProp": "SeasonsCount" }, //Seasons - { sWidth: '100px', "mDataProp": "QualityProfileName" }, //Quality + { sWidth: '100px', "mDataProp": "QualityProfileName", sClass: "qualityColumn" }, //Quality { sWidth: '120px', "mDataProp": "Network" }, //Network { sWidth: '120px', "mDataProp": function (source, type, val) { // 'display' and 'filter' use our fancy naming @@ -175,8 +175,8 @@ } }, //Episodes { sWidth: '50px', "mDataProp": "HasBanner", "bSortable": false, "fnRender": function (row) { - return "" + - ""; + return "" + + ""; } }, //Commands { sWidth: '60px', "mDataProp": "Details", "bSortable": false, "bVisible": false, "fnRender": function (row) { @@ -213,6 +213,11 @@ //After we save do this... function afterSave() { updateStatus(); + + //Update Quality + var seriesId = $('#SeriesId').val(); + var quality = $('#QualityProfileId :selected').text(); + $('.' + seriesId).children('.qualityColumn').text(quality); } function updateStatus() {