diff options
author | Struan Donald <struan@exo.org.uk> | 2013-03-20 16:46:42 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-03-21 17:19:40 +0000 |
commit | 73c76ce0aa20f32769a36e08a82e62bd63d6e9f5 (patch) | |
tree | aa24bb18d9b141c961f38954b62f1bb7dca0186f /www/js/router.js | |
parent | 7c28392bc868e2f7c978aee50eea641a62a3b21b (diff) |
simple address search functionality
Diffstat (limited to 'www/js/router.js')
-rw-r--r-- | www/js/router.js | 6 |
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); |