fixed calendar view

This commit is contained in:
kay.one 2013-06-09 19:10:15 -07:00
commit aca5d1f361
6 changed files with 51 additions and 20 deletions

View file

@ -1,5 +1,5 @@
"use strict";
define(['app','Series/SeriesModel'], function () {
define(['app', 'Series/SeriesModel'], function () {
NzbDrone.Series.EpisodeModel = Backbone.Model.extend({
mutators: {
@ -62,6 +62,13 @@ define(['app','Series/SeriesModel'], function () {
return model;
},
toJSON: function () {
var json = _.clone(this.attributes);
json.series = this.get('series').toJSON();
return json;
},
defaults: {
seasonNumber: 0,
status : 0