aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/router.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-06-19 11:53:39 +0100
committerStruan Donald <struan@exo.org.uk>2013-06-19 12:14:00 +0100
commit6f21e968c74e335b8f5c7b9ecfc968db9c042a5c (patch)
tree958dd19133a60a56d864a439ea7e5aad1331608a /www/js/router.js
parent4dbb22f4241260f7debd204cff870ec829bd0aff (diff)
check for, display and send extra details on open311 categories
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 2646fb0..3ea4dbd 100644
--- a/www/js/router.js
+++ b/www/js/router.js
@@ -13,6 +13,7 @@
'existing': 'existing',
'photo': 'photo',
'details': 'details',
+ 'details_extra': 'details_extra',
'submit-start': 'submitStart',
'submit': 'submit',
'submit-email': 'submitEmail',
@@ -79,6 +80,11 @@
this.changeView(detailsView);
},
+ details_extra: function(){
+ var detailsExtraView = new FMS.DetailsExtraView({ model: FMS.currentDraft });
+ this.changeView(detailsExtraView);
+ },
+
submitStart: function() {
var submitView;
if ( FMS.currentUser && FMS.isLoggedIn ) {