mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
internal links are automatically handled using NzbDrone.Router.navigate instead
of re-loading page.
This commit is contained in:
parent
13cff22cf8
commit
2e3863895c
4 changed files with 31 additions and 14 deletions
|
@ -19,7 +19,6 @@ define([
|
|||
events: {
|
||||
'click .x-edit' : 'editSeries',
|
||||
'click .x-remove': 'removeSeries',
|
||||
'click a' : 'showEpisodeList'
|
||||
},
|
||||
|
||||
initialize: function (options) {
|
||||
|
@ -34,12 +33,6 @@ define([
|
|||
removeSeries: function () {
|
||||
var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
|
||||
NzbDrone.modalRegion.show(view);
|
||||
},
|
||||
|
||||
showEpisodeList: function (e) {
|
||||
e.preventDefault();
|
||||
NzbDrone.Router.navigate('/series/details/' + this.model.get('id'), { trigger: true});
|
||||
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue