diff --git a/NzbDrone.Web/Content/Overrides.css b/NzbDrone.Web/Content/Overrides.css index f0e552a63..4254cdef9 100644 --- a/NzbDrone.Web/Content/Overrides.css +++ b/NzbDrone.Web/Content/Overrides.css @@ -26,6 +26,11 @@ color: #065EFE; } +.jquery-tabs +{ + margin-top: 10px; +} + /*MiniProfiler*/ .profiler-button diff --git a/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js b/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js index 1a4a08377..1e8026218 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js +++ b/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js @@ -16,10 +16,30 @@ $(this).removeAttr('disabled'); }); - + //All buttons are jQueryUI buttons $('button, input[type="button"], input[type="submit"], input[type="reset"]').livequery(function () { $(this).button(); }); + $('.jquery-accordion').livequery(function () { + $(this).accordion({ + autoHeight: false, + collapsible: true + }); + }); + + $('.jquery-tabs').livequery(function () { + $(this).tabs({ + fx: { opacity: 'toggle' }, + select: function (event, ui) { + jQuery(this).css('height', jQuery(this).height()); + jQuery(this).css('overflow', 'hidden'); + }, + show: function (event, ui) { + jQuery(this).css('height', 'auto'); + jQuery(this).css('overflow', 'visible'); + } + }); + }); }); \ No newline at end of file diff --git a/NzbDrone.Web/Scripts/NzbDrone/addSeries.js b/NzbDrone.Web/Scripts/NzbDrone/addSeries.js index 5a93ca03b..43c63ae79 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/addSeries.js +++ b/NzbDrone.Web/Scripts/NzbDrone/addSeries.js @@ -14,7 +14,7 @@ var rootListUrl = '../AddSeries/RootList'; $(".masterQualitySelector").live('change', function () { var profileId = $(this).val(); - $("#existingSeries").find(".qualitySelector").each(function () { + $("#existingSeriesTab").find(".qualitySelector").each(function () { $(this).val(profileId); }); }); @@ -45,7 +45,7 @@ $(".addExistingButton").live('click', function () { function reloadExistingSeries() { $.get(existingSeriesUrl, function (data) { - $('#existingSeries').html(data); + $('#existingSeriesTab').html(data); }); } diff --git a/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml b/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml index bea0ec078..7c2e8c4df 100644 --- a/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml +++ b/NzbDrone.Web/Views/AddSeries/ExistingSeries.cshtml @@ -5,26 +5,23 @@ @{ Layout = null; } - - @if (Model.ExistingSeries.Count == 0) {