diff --git a/UI/AddSeries/RootFolders/Model.js b/UI/AddSeries/RootFolders/Model.js
index eaed76ff3..0402e4008 100644
--- a/UI/AddSeries/RootFolders/Model.js
+++ b/UI/AddSeries/RootFolders/Model.js
@@ -5,12 +5,6 @@ define(
'sugar'
], function (Backbone) {
return Backbone.Model.extend({
- mutators: {
- freeSpaceString: function () {
- return this.get('freeSpace').bytes(2) + ' Free';
- }
- },
-
defaults: {
freeSpace: 0
}
diff --git a/UI/AddSeries/RootFolders/RootFolderItemTemplate.html b/UI/AddSeries/RootFolders/RootFolderItemTemplate.html
index fc35d24c8..985aaceb3 100644
--- a/UI/AddSeries/RootFolders/RootFolderItemTemplate.html
+++ b/UI/AddSeries/RootFolders/RootFolderItemTemplate.html
@@ -2,7 +2,7 @@
{{path}}
- {{freeSpaceString}}
+ {{Bytes freeSpace}}
|
diff --git a/UI/Release/Model.js b/UI/Release/Model.js
index 64a2505ac..692c6c3a9 100644
--- a/UI/Release/Model.js
+++ b/UI/Release/Model.js
@@ -1,14 +1,9 @@
-'use strict';
-define(['backbone'], function (Backbone) {
- return Backbone.Model.extend({
- /* mutators: {
- seasonNumber: function () {
- return this.get('episode').seasonNumber;
- },
-
- paddedEpisodeNumber: function () {
- return this.get('episode').episodeNumber.pad(2);
- }
- }*/
+
+'use strict';
+define(
+ [
+ 'backbone'
+ ], function (Backbone) {
+ return Backbone.Model.extend({
+ });
});
-});
diff --git a/UI/Series/SeasonModel.js b/UI/Series/SeasonModel.js
index d47d268bb..7fa180272 100644
--- a/UI/Series/SeasonModel.js
+++ b/UI/Series/SeasonModel.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
define(
[
'backbone'
diff --git a/UI/Series/SeriesModel.js b/UI/Series/SeriesModel.js
index bca7a296a..4b440ca61 100644
--- a/UI/Series/SeriesModel.js
+++ b/UI/Series/SeriesModel.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
define(
[
'backbone',
@@ -52,24 +52,13 @@ define(
isContinuing : function () {
return this.get('status') === 'continuing';
},
- shortDate : function () {
- var date = this.get('nextAiring');
-
- if (!date) {
- return '';
- }
-
- return Date.create(date).short();
- },
route : function () {
return '/series/details/' + this.get('titleSlug');
//return '/series/details/' + this.get('id');
},
qualityProfile: function () {
-
var profile = QualityProfileCollection.get(this.get('qualityProfileId'));
-
if (profile) {
return profile.toJSON();
}
|