mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
removed NzbDrone. namespace, everything is done using require.
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
define(['app', 'Cells/NzbDroneCell'], function () {
|
||||
return NzbDrone.Cells.NzbDroneCell.extend({
|
||||
define(
|
||||
[
|
||||
'app',
|
||||
'Cells/NzbDroneCell',
|
||||
'Episode/Layout'
|
||||
], function (App, NzbDroneCell, EpisodeLayout) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'episode-title-cell',
|
||||
className: 'episode-title-cell',
|
||||
|
||||
events: {
|
||||
'click': 'showDetails'
|
||||
},
|
||||
events: {
|
||||
'click': 'showDetails'
|
||||
},
|
||||
|
||||
showDetails: function () {
|
||||
var view = new NzbDrone.Episode.Layout({ model: this.cellValue });
|
||||
NzbDrone.modalRegion.show(view);
|
||||
},
|
||||
showDetails: function () {
|
||||
var view = new EpisodeLayout({ model: this.cellValue });
|
||||
App.modalRegion.show(view);
|
||||
},
|
||||
|
||||
render: function () {
|
||||
this.$el.html(this.cellValue.get('title'));
|
||||
return this;
|
||||
}
|
||||
render: function () {
|
||||
this.$el.html(this.cellValue.get('title'));
|
||||
return this;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user