diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-01 10:52:55 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-01 10:52:55 +0000 |
commit | 18df1a462e57419854ac66111b931b6f17db7b9e (patch) | |
tree | 823ae65d756bb9ca166a502607d8e3d27f0f1edd /www/js/router.js | |
parent | d9ac9c1ac9dd8c491a40ae403d80e8cc5d5c78ba (diff) |
add report model and use it to store and fetch categories for details template
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/js/router.js b/www/js/router.js index 05b5d33..7ee585a 100644 --- a/www/js/router.js +++ b/www/js/router.js @@ -21,22 +21,22 @@ }, around: function(){ - var aroundView = new FMS.AroundView(); + var aroundView = new FMS.AroundView({ model: FMS.currentReport }); this.changeView(aroundView); }, home: function(){ - var homeView = new FMS.HomeView(); + var homeView = new FMS.HomeView({ model: FMS.currentReport }); this.changeView(homeView); }, photo: function(){ - var photoView = new FMS.PhotoView(); + var photoView = new FMS.PhotoView({ model: FMS.currentReport }); this.changeView(photoView); }, details: function(){ - var detailsView = new FMS.DetailsView(); + var detailsView = new FMS.DetailsView({ model: FMS.currentReport }); this.changeView(detailsView); }, |