mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -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,12 +1,12 @@
|
|||
'use strict';
|
||||
define([
|
||||
'app',
|
||||
'Calendar/UpcomingCollectionView',
|
||||
'Calendar/CalendarView',
|
||||
'Shared/Toolbar/ToolbarLayout'
|
||||
],
|
||||
function () {
|
||||
NzbDrone.Calendar.CalendarLayout = Backbone.Marionette.Layout.extend({
|
||||
define(
|
||||
[
|
||||
'marionette',
|
||||
'Calendar/UpcomingCollection',
|
||||
'Calendar/UpcomingCollectionView',
|
||||
'Calendar/CalendarView',
|
||||
], function (Marionette, UpcomingCollection, UpcomingCollectionView, CalendarView) {
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Calendar/CalendarLayoutTemplate',
|
||||
|
||||
regions: {
|
||||
|
@ -15,7 +15,7 @@ define([
|
|||
},
|
||||
|
||||
initialize: function () {
|
||||
this.upcomingCollection = new NzbDrone.Calendar.UpcomingCollection();
|
||||
this.upcomingCollection = new UpcomingCollection();
|
||||
this.upcomingCollection.fetch();
|
||||
},
|
||||
|
||||
|
@ -25,13 +25,13 @@ define([
|
|||
},
|
||||
|
||||
_showUpcoming: function () {
|
||||
this.upcoming.show(new NzbDrone.Calendar.UpcomingCollectionView({
|
||||
this.upcoming.show(new UpcomingCollectionView({
|
||||
collection: this.upcomingCollection
|
||||
}));
|
||||
},
|
||||
|
||||
_showCalendar: function () {
|
||||
this.calendar.show(new NzbDrone.Calendar.CalendarView());
|
||||
this.calendar.show(new CalendarView());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue