From 55d899fe2b2d724b8b3d974429f5660874a5f709 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 29 Feb 2012 16:51:31 -0800 Subject: [PATCH] Fix: Settings initial page load is smoother. --- NzbDrone.Web/Content/Settings.css | 5 +++++ NzbDrone.Web/Scripts/NzbDrone/AutoBind.js | 2 ++ NzbDrone.Web/Views/Settings/Index.cshtml | 4 +++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Web/Content/Settings.css b/NzbDrone.Web/Content/Settings.css index fc6b64591..29aa05e28 100644 --- a/NzbDrone.Web/Content/Settings.css +++ b/NzbDrone.Web/Content/Settings.css @@ -4,6 +4,11 @@ margin: 0; padding: 0; } + +.jquery-tabs { + display: none; +} + .spacer { clear: both; diff --git a/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js b/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js index 1e8026218..702fa43b2 100644 --- a/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js +++ b/NzbDrone.Web/Scripts/NzbDrone/AutoBind.js @@ -30,6 +30,8 @@ }); $('.jquery-tabs').livequery(function () { + $(this).show(); + $(this).tabs({ fx: { opacity: 'toggle' }, select: function (event, ui) { diff --git a/NzbDrone.Web/Views/Settings/Index.cshtml b/NzbDrone.Web/Views/Settings/Index.cshtml index 407a2d48a..540aabe97 100644 --- a/NzbDrone.Web/Views/Settings/Index.cshtml +++ b/NzbDrone.Web/Views/Settings/Index.cshtml @@ -10,7 +10,7 @@
+ +
@{ Html.RenderAction("Naming", "Settings"); }
@section Scripts{