mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
parent
ef62af75df
commit
b0bd3f34f1
121 changed files with 2570 additions and 2587 deletions
|
@ -1,24 +1,25 @@
|
|||
'use strict';
|
||||
define(['app'], function () {
|
||||
NzbDrone.Series.SeasonModel = Backbone.Model.extend({
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'backbone'
|
||||
], function (Backbone) {
|
||||
return Backbone.Model.extend({
|
||||
|
||||
mutators: {
|
||||
seasonTitle: function () {
|
||||
var seasonNumber = this.get('seasonNumber');
|
||||
mutators: {
|
||||
seasonTitle: function () {
|
||||
var seasonNumber = this.get('seasonNumber');
|
||||
|
||||
if (seasonNumber === 0) {
|
||||
return 'Specials';
|
||||
if (seasonNumber === 0) {
|
||||
return 'Specials';
|
||||
}
|
||||
|
||||
return 'Season ' + seasonNumber;
|
||||
}
|
||||
},
|
||||
|
||||
return 'Season ' + seasonNumber;
|
||||
defaults: {
|
||||
seasonNumber: 0
|
||||
}
|
||||
},
|
||||
|
||||
defaults: {
|
||||
seasonNumber: 0
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return NzbDrone.Series.SeasonModel;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue