diff --git a/NzbDrone.Web/Views/AddSeries/AddNew.cshtml b/NzbDrone.Web/Views/AddSeries/AddNew.cshtml
index f3bda9a38..291f115ee 100644
--- a/NzbDrone.Web/Views/AddSeries/AddNew.cshtml
+++ b/NzbDrone.Web/Views/AddSeries/AddNew.cshtml
@@ -1,27 +1,24 @@
@using NzbDrone.Web.Models
-
@{
Layout = null;
}
-
-
+
@{Html.Telerik().ComboBox()
.Name("seriesList_new")
@@ -34,37 +31,38 @@
+@section Scripts{
+
\ No newline at end of file
+ //Through up an alert if we failed to add the series
+ if (data != 'ok')
+ alert("Sorry! We could not add " + seriesName + ", does it already exist?");
+
+ else
+ closeAddNewSeries(); //Close the Window!
+ }
+ });
+ }
+
+}
diff --git a/NzbDrone.Web/Views/AddSeries/Index.cshtml b/NzbDrone.Web/Views/AddSeries/Index.cshtml
index 1beeb83ba..37a0e5aae 100644
--- a/NzbDrone.Web/Views/AddSeries/Index.cshtml
+++ b/NzbDrone.Web/Views/AddSeries/Index.cshtml
@@ -1,30 +1,18 @@
@model List
@using NzbDrone.Core.Repository
-
-@{ Html.Telerik().ScriptRegistrar().DefaultGroup(group => group
- .Add("telerik.common.js")
- .Add("telerik.draganddrop.js")
- .Add("telerik.window.js")
- .Add("telerik.panelbar.js")
- .Add("telerik.list.js")
- .Add("telerik.combobox.js")); }
-
-
@section TitleContent{
- Add Series
+Add Series
}
-
@section MainContent{
-
@{ Html.Telerik().Window()
.Name("Window")
.Title("Add New Series")
@@ -37,8 +25,7 @@
.Resizable(resizing => resizing.Enabled(false))
.LoadContentFrom("AddNew", "AddSeries")
.Render();
-}
-
+ }
@{ Html.Telerik().PanelBar()
.Name("RootDirPanel")
.HtmlAttributes(new { style = "margin: 0px;" })
@@ -51,142 +38,146 @@
.Selected((bool)ViewData["ShowRootDirs"])
.Expanded((bool)ViewData["ShowRootDirs"])
.Content(@
-
-
-
-
- @foreach (var root in Model)
- {
- Html.RenderAction("GetRootDirView", root);
- }
-
-
-
-
- );
- }).Render();
+
+
+
+ @foreach (var root in Model)
+ {
+ Html.RenderAction("GetRootDirView", root);
+ }
+
+
+
+
+
+ );
+ }).Render();
}
-
-
-
- @Html.Telerik().DropDownList().Name("masterDropbox").BindTo((SelectList) ViewData["qualities"]).HtmlAttributes(
- new {style = "width: 100px; margin-left:224px;"}).ClientEvents(events => events.OnChange("masterChanged"))
-
+
+ @Html.Telerik().DropDownList().Name("masterDropbox").BindTo((SelectList)ViewData["qualities"]).HtmlAttributes(
+ new { style = "width: 100px; margin-left:224px;" }).ClientEvents(events => events.OnChange("masterChanged"))
-
@{ Html.RenderAction("AddExisting", "AddSeries"); }
}
-
\ No newline at end of file
+ }
+
+}
diff --git a/NzbDrone.Web/Views/Series/SeasonEditor.cshtml b/NzbDrone.Web/Views/Series/SeasonEditor.cshtml
index da8ed7027..3aad85958 100644
--- a/NzbDrone.Web/Views/Series/SeasonEditor.cshtml
+++ b/NzbDrone.Web/Views/Series/SeasonEditor.cshtml
@@ -1,37 +1,36 @@
@using NzbDrone.Web.Models;
@model List
-
@{
Layout = null;
}
-
@foreach (var season in Model)
{
Html.RenderAction("GetSingleSeasonView", "Series", season);
}
+@section Scripts{
+
+
+}
diff --git a/NzbDrone.Web/Views/Settings/EpisodeSorting.cshtml b/NzbDrone.Web/Views/Settings/EpisodeSorting.cshtml
index 311b3bc96..eaf4562f7 100644
--- a/NzbDrone.Web/Views/Settings/EpisodeSorting.cshtml
+++ b/NzbDrone.Web/Views/Settings/EpisodeSorting.cshtml
@@ -1,253 +1,242 @@
@using NzbDrone.Web.Helpers
@model NzbDrone.Web.Models.EpisodeSortingModel
-
-
@using (Html.BeginForm("SaveEpisodeSorting", "Settings", FormMethod.Post, new { id = "form", name = "form" }))
{
@Html.ValidationSummary(true, "Unable to save your settings. Please correct the errors and try again.")
}
-
-
-
\ No newline at end of file
+ if (style == 3) {
+ if (numberId <= 1)
+ result += '-x06';
+
+ if (numberId == 2)
+ result += '-E06';
+
+ if (numberId == 3)
+ result += '-e06';
+ }
+
+ if ($('#EpisodeName').attr('checked')) {
+ result += separator;
+ result += 'Episode Name';
+ }
+
+ if ($('#AppendQuality').attr('checked'))
+ result += ' [TV]';
+
+ if ($('#ReplaceSpaces').attr('checked'))
+ result = result.replace(/\s/g, '.');
+
+ result = 'Multi-Episode Example: ' + result;
+
+ $('#multiEpisodeExample').html(result);
+ }
+
+}
diff --git a/NzbDrone.Web/Views/Settings/Indexers.cshtml b/NzbDrone.Web/Views/Settings/Indexers.cshtml
index 737f53c19..44aca26e2 100644
--- a/NzbDrone.Web/Views/Settings/Indexers.cshtml
+++ b/NzbDrone.Web/Views/Settings/Indexers.cshtml
@@ -1,28 +1,5 @@
@model NzbDrone.Web.Models.IndexerSettingsModel
-