mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
almost all js files are loaded using require.js
This commit is contained in:
parent
aed7b95245
commit
2407e33ea2
35 changed files with 570 additions and 717 deletions
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
define(['app', 'Release/Model'], function () {
|
||||
NzbDrone.Release.Collection = Backbone.PageableCollection.extend({
|
||||
define(['app', 'Release/Model', 'backbone.pageable'], function (app, SeriesModel, PagableCollection) {
|
||||
NzbDrone.Release.Collection = PagableCollection.extend({
|
||||
url : NzbDrone.Constants.ApiRoot + '/release',
|
||||
model: NzbDrone.Release.Model,
|
||||
|
||||
|
|
|
@ -1,27 +1,33 @@
|
|||
"use strict";
|
||||
NzbDrone.Release.DownloadReportCell = Backgrid.Cell.extend({
|
||||
|
||||
className: "download-report-cell",
|
||||
define(['app'], function () {
|
||||
NzbDrone.Release.DownloadReportCell = Backgrid.Cell.extend({
|
||||
|
||||
events: {
|
||||
'click': '_onClick'
|
||||
},
|
||||
className: "download-report-cell",
|
||||
|
||||
_onClick: function () {
|
||||
events: {
|
||||
'click': '_onClick'
|
||||
},
|
||||
|
||||
var self = this;
|
||||
_onClick: function () {
|
||||
|
||||
this.$el.html('<i class ="icon-spinner icon-spin" />');
|
||||
this.model.save()
|
||||
.always(function () {
|
||||
self.$el.html('<i class ="icon-download-alt" />');
|
||||
});
|
||||
},
|
||||
var self = this;
|
||||
|
||||
render: function () {
|
||||
this.$el.html('<i class ="icon-spinner icon-spin" />');
|
||||
this.model.save()
|
||||
.always(function () {
|
||||
self.$el.html('<i class ="icon-download-alt" />');
|
||||
});
|
||||
},
|
||||
|
||||
this.$el.html('<i class ="icon-download-alt" />');
|
||||
return this;
|
||||
render: function () {
|
||||
|
||||
}
|
||||
this.$el.html('<i class ="icon-download-alt" />');
|
||||
return this;
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return NzbDrone.Release.DownloadReportCell;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue