- @Html.CheckBoxFor(m => m.Monitored, new { @class = "inputClass checkClass" })
-
- @Html.CheckBoxFor(m => m.SeasonFolder, new { @class = "inputClass checkClass" })
-
- @Html.DropDownListFor(m => m.QualityProfileId, (SelectList)ViewData["SelectList"], new { @class = "inputClass" })
-
-
-
- @Html.LabelFor(m => m.SeasonEditor)
-
-
-
-
-
+
+
+
+
+ @Html.HiddenFor(m => m.SeriesId)
+
+ @Html.CheckBoxFor(m => m.Monitored, new { @class = "inputClass checkClass" })
+
+ @Html.CheckBoxFor(m => m.SeasonFolder, new { @class = "inputClass checkClass" })
+
+ @Html.DropDownListFor(m => m.QualityProfileId, (SelectList)ViewData["SelectList"], new { @class = "inputClass" })
+
+ @Html.TextBoxFor(m => m.Path, new { @class = "inputClass" })
-
\ No newline at end of file
diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml
index 380e19584..82a08a942 100644
--- a/NzbDrone.Web/Views/Series/Index.cshtml
+++ b/NzbDrone.Web/Views/Series/Index.cshtml
@@ -4,6 +4,7 @@
@section TitleContent{
NZBDrone
}
+
+
@section ActionMenu{
@{Html.RenderPartial("SubMenu");}
}
@@ -103,37 +105,10 @@ NZBDrone
.closest(".t-window")
.data("tWindow")
.center();
-
- var seriesId = args.dataItem.SeriesId;
- var url = '@Url.Action("SeasonEditor", "Series")';
- $('#season-editor').load(url, { seriesId: seriesId }, function (response, status, xhr) {
- $('#seasonEditorLoader').hide();
- });
}
function grid_save(e) {
$('#ajaxSaveWheel').show();
-
- var seasonEditor = e.form.SeasonEditor_collection;
- var saveSeasonEditUrl = '@Url.Action("SaveSeason", "Series")';
-
- jQuery.each(seasonEditor, function () {
- var guid = $(this).val();
- var prefix = '#SeasonEditor_' + guid + '__';
- var seriesId = $(prefix + 'SeriesId').val();
- var seasonNumber = $(prefix + 'SeasonNumber').val();
- var monitored = $(prefix + 'Monitored').attr('checked');
-
- $.ajax({
- type: "POST",
- url: saveSeasonEditUrl,
- data: jQuery.param({ seriesId: seriesId, seasonNumber: seasonNumber, monitored: monitored }),
- error: function (req, status, error) {
- alert("Sorry! We could save season changes at this time. " + error);
- },
- success: function (data, textStatus, jqXHR) { }
- });
- });
}
function grid_rowBound(e) {
diff --git a/NzbDrone.Web/Views/Series/SeasonEditor.cshtml b/NzbDrone.Web/Views/Series/SeasonEditor.cshtml
deleted file mode 100644
index 3aad85958..000000000
--- a/NzbDrone.Web/Views/Series/SeasonEditor.cshtml
+++ /dev/null
@@ -1,36 +0,0 @@
-@using NzbDrone.Web.Models;
-@model List
-@{
- Layout = null;
-}
-
- @foreach (var season in Model)
- {
- Html.RenderAction("GetSingleSeasonView", "Series", season);
- }
-
-@section Scripts{
-
-}