mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
moved to tablesorter.
This commit is contained in:
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();
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user