aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/router.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/router.js')
-rw-r--r--www/js/router.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/router.js b/www/js/router.js
index 29a5d64..e9bce54 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -7,6 +7,7 @@
'': 'home',
'home': 'home',
'around': 'around',
+ 'search': 'search',
'photo': 'photo',
'details': 'details',
'submit': 'submit',
@@ -30,6 +31,11 @@
this.changeView(aroundView);
},
+ search: function(){
+ var searchView = new FMS.SearchView({ model: FMS.currentReport });
+ this.changeView(searchView);
+ },
+
home: function(){
var homeView = new FMS.HomeView({ model: FMS.currentReport });
this.changeView(homeView);