UI will reload on navigation if the backend has been update

This commit is contained in:
Mark McDowall 2013-11-13 19:38:30 -08:00
parent 541cd0ce19
commit c286f1b18a
7 changed files with 98 additions and 57 deletions

View file

@ -29,49 +29,49 @@ define(
addSeries: function (action) {
this.setTitle('Add Series');
AppLayout.mainRegion.show(new AddSeriesLayout({action: action}));
this.showMainRegion(new AddSeriesLayout({action: action}));
},
calendar: function () {
this.setTitle('Calendar');
AppLayout.mainRegion.show(new CalendarLayout());
this.showMainRegion(new CalendarLayout());
},
settings: function (action) {
this.setTitle('Settings');
AppLayout.mainRegion.show(new SettingsLayout({ action: action }));
this.showMainRegion(new SettingsLayout({ action: action }));
},
missing: function () {
this.setTitle('Missing');
AppLayout.mainRegion.show(new MissingLayout());
this.showMainRegion(new MissingLayout());
},
history: function (action) {
this.setTitle('History');
AppLayout.mainRegion.show(new HistoryLayout({ action: action }));
this.showMainRegion(new HistoryLayout({ action: action }));
},
rss: function () {
this.setTitle('RSS');
AppLayout.mainRegion.show(new ReleaseLayout());
this.showMainRegion(new ReleaseLayout());
},
system: function (action) {
this.setTitle('System');
AppLayout.mainRegion.show(new SystemLayout({ action: action }));
this.showMainRegion(new SystemLayout({ action: action }));
},
seasonPass: function () {
this.setTitle('Season Pass');
AppLayout.mainRegion.show(new SeasonPassLayout());
this.showMainRegion(new SeasonPassLayout());
},
update: function () {
this.setTitle('Updates');
AppLayout.mainRegion.show(new UpdateLayout());
this.showMainRegion(new UpdateLayout());
}
});
});