mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
moved to tablesorter.
This commit is contained in:
parent
cda53cfd3a
commit
6a7e346bf2
22 changed files with 2321 additions and 2687 deletions
38
NzbDrone.Web/_backboneApp/Controller.js
Normal file
38
NzbDrone.Web/_backboneApp/Controller.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
define(['app', 'AddSeries/AddSeriesLayout','Series/SeriesCollectionView'], function () {
|
||||
|
||||
var controller = Backbone.Marionette.Controller.extend({
|
||||
|
||||
addSeries: function (action, query) {
|
||||
NzbDrone.mainRegion.show(new NzbDrone.AddSeries.AddSeriesLayout(this, action, query));
|
||||
this.setTitle('Add Series');
|
||||
},
|
||||
|
||||
series: function (action, query) {
|
||||
NzbDrone.mainRegion.show(new NzbDrone.Series.SeriesCollectionView(this, action, query));
|
||||
this.setTitle('NzbDrone');
|
||||
|
||||
},
|
||||
|
||||
notFound: function () {
|
||||
this.setTitle('Not Found');
|
||||
},
|
||||
|
||||
setTitle: function(title)
|
||||
{
|
||||
$('#title-region').html(title);
|
||||
|
||||
if(title.toLocaleLowerCase() === 'nzbdrone')
|
||||
{
|
||||
window.document.title = 'NzbDrone';
|
||||
}
|
||||
else
|
||||
{
|
||||
window.document.title = title + ' - NzbDrone';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return new controller();
|
||||
|
||||
});
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue