From 96868d088fb3437933ce83792b447df1db63fc93 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 13 Dec 2013 00:06:56 -0800 Subject: [PATCH] Fixed series editor --- src/UI/Cells/SeasonFolderCell.js | 5 ++++- src/UI/Series/Editor/SeriesEditorFooterView.js | 3 +++ src/UI/Series/Editor/SeriesEditorLayout.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/UI/Cells/SeasonFolderCell.js b/src/UI/Cells/SeasonFolderCell.js index 5c9cc6d1b..e3b437b39 100644 --- a/src/UI/Cells/SeasonFolderCell.js +++ b/src/UI/Cells/SeasonFolderCell.js @@ -8,8 +8,11 @@ define( className : 'season-folder-cell', render: function () { - var seasonFolder = this.model.get('seasonFolder'); + this.$el.empty(); + + var seasonFolder = this.model.get(this.column.get('name')); this.$el.html(seasonFolder.toString()); + return this; } }); diff --git a/src/UI/Series/Editor/SeriesEditorFooterView.js b/src/UI/Series/Editor/SeriesEditorFooterView.js index 42b2b85f4..28a27bca4 100644 --- a/src/UI/Series/Editor/SeriesEditorFooterView.js +++ b/src/UI/Series/Editor/SeriesEditorFooterView.js @@ -94,6 +94,8 @@ define( model.set('rootFolderPath', rootFolderPath.get('path')); } + + model.edited = true; }); SeriesCollection.save(); @@ -150,6 +152,7 @@ define( SeriesCollection.each(function (model) { model.trigger('backgrid:select', model, false); + model.edited = false; }); } }); diff --git a/src/UI/Series/Editor/SeriesEditorLayout.js b/src/UI/Series/Editor/SeriesEditorLayout.js index e82149fa9..84ee8bca7 100644 --- a/src/UI/Series/Editor/SeriesEditorLayout.js +++ b/src/UI/Series/Editor/SeriesEditorLayout.js @@ -68,7 +68,7 @@ define( cell : QualityProfileCell }, { - name : 'monitored', + name : 'seasonFolder', label: 'Season Folder', cell : SeasonFolderCell },