Auto reload when server has been updated

New: Updating will reload UI on navigation
This commit is contained in:
Mark McDowall
2014-05-11 17:44:42 -07:00
parent 99f2b07a11
commit eff7c4b7b7
10 changed files with 98 additions and 31 deletions

View File

@@ -19,7 +19,7 @@ define(
series: function () {
this.setTitle('NzbDrone');
AppLayout.mainRegion.show(new SeriesIndexLayout());
this.showMainRegion(new SeriesIndexLayout());
},
seriesDetails: function (query) {
@@ -28,7 +28,7 @@ define(
if (series.length !== 0) {
var targetSeries = series[0];
this.setTitle(targetSeries.get('title'));
AppLayout.mainRegion.show(new SeriesDetailsLayout({ model: targetSeries }));
this.showMainRegion(new SeriesDetailsLayout({ model: targetSeries }));
}
else {
this.showNotFound();