mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
main menu now uses backbone to handle navigation. no more reload.
This commit is contained in:
parent
23c1c147f1
commit
82ae91dd6e
5 changed files with 65 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
define(['app', 'Shared/ModalRegion', 'AddSeries/AddSeriesLayout', 'Series/SeriesCollectionView',
|
||||
'Upcoming/UpcomingCollectionView', 'Calendar/CalendarCollectionView', 'Shared/NotificationView',
|
||||
'Shared/NotFoundView'], function (app, modalRegion) {
|
||||
'Shared/NotFoundView', 'MainMenuView'], function (app, modalRegion) {
|
||||
|
||||
var controller = Backbone.Marionette.Controller.extend({
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
//Modal dialog initializer
|
||||
NzbDrone.addInitializer(function () {
|
||||
|
||||
NzbDrone.addRegions({ modalRegion: modalRegion });
|
||||
|
@ -59,7 +59,7 @@
|
|||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
return new controller();
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue