mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -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,8 +1,8 @@
|
|||
'use strict';
|
||||
define(['app', 'Logs/Model', 'backbone.pageable'], function (app, SeriesModel, PagableCollection) {
|
||||
NzbDrone.Logs.Collection = PagableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/log',
|
||||
model: NzbDrone.Logs.Model,
|
||||
'use strict';
|
||||
define(['backbone.pageable', 'Logs/Model', ], function (PagableCollection, LogsModel) {
|
||||
return PagableCollection.extend({
|
||||
url : window.ApiRoot + '/log',
|
||||
model: LogsModel,
|
||||
|
||||
state: {
|
||||
pageSize: 50,
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
'use strict';
|
||||
define([
|
||||
'app',
|
||||
'Logs/Collection',
|
||||
'Shared/Toolbar/ToolbarLayout',
|
||||
'Shared/Grid/Pager'
|
||||
'marionette',
|
||||
'backgrid',
|
||||
'Shared/Grid/Pager',
|
||||
'Logs/Collection'
|
||||
],
|
||||
function () {
|
||||
NzbDrone.Logs.Layout = Backbone.Marionette.Layout.extend({
|
||||
function (Marionette,Backgrid, GridPager, LogCollection) {
|
||||
return Marionette.Layout.extend({
|
||||
template: 'Logs/LayoutTemplate',
|
||||
|
||||
regions: {
|
||||
|
@ -51,20 +51,19 @@ define([
|
|||
className : 'table table-hover'
|
||||
}));
|
||||
|
||||
this.pager.show(new NzbDrone.Shared.Grid.Pager({
|
||||
this.pager.show(new GridPager({
|
||||
columns : this.columns,
|
||||
collection: this.collection
|
||||
}));
|
||||
},
|
||||
|
||||
initialize: function () {
|
||||
this.collection = new NzbDrone.Logs.Collection();
|
||||
this.collection = new LogCollection();
|
||||
this.collection.fetch();
|
||||
},
|
||||
|
||||
onShow: function () {
|
||||
this.showTable();
|
||||
//this.toolbar.show(new NzbDrone.Shared.Toolbar.ToolbarLayout({right: [ viewButtons], context: this}));
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
'use strict';
|
||||
define(['app'], function (app) {
|
||||
NzbDrone.Logs.Model = 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({
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue