From 47b997326b91c4090bf6b6ad1339b2016424c1ba Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 21 Jun 2011 00:02:21 -0700 Subject: [PATCH] Fixed failure when trying to add the first root dir (Missing Telerik scripts for combobox). --- NzbDrone.Web/Controllers/AddSeriesController.cs | 1 + NzbDrone.Web/Views/AddSeries/Index.cshtml | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Web/Controllers/AddSeriesController.cs b/NzbDrone.Web/Controllers/AddSeriesController.cs index 8dd5eb4fe..229c909e3 100644 --- a/NzbDrone.Web/Controllers/AddSeriesController.cs +++ b/NzbDrone.Web/Controllers/AddSeriesController.cs @@ -215,6 +215,7 @@ public PartialViewResult AddRootDir() { Id = 0, Path = "", + CleanPath = "", SelectList = new SelectList(new List { "" }, "") }; diff --git a/NzbDrone.Web/Views/AddSeries/Index.cshtml b/NzbDrone.Web/Views/AddSeries/Index.cshtml index 8fcff4512..3ba47c60a 100644 --- a/NzbDrone.Web/Views/AddSeries/Index.cshtml +++ b/NzbDrone.Web/Views/AddSeries/Index.cshtml @@ -1,7 +1,13 @@ @model List @using NzbDrone.Core.Repository - +@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group + .Add("telerik.common.min.js") + .Add("telerik.draganddrop.min.js") + .Add("telerik.window.min.js") + .Add("telerik.panelbar.min.js") + .Add("telerik.list.min.js") + .Add("telerik.combobox.min.js")); }