mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-06 16:55:49 +00:00
almost all js files are loaded using require.js
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user