diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-28 16:56:26 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-28 16:56:26 +0100 |
commit | e159dbbc0204c2c66418b737499b07595f068dcc (patch) | |
tree | 55b564cd20b7ca07f9bcbc3647df454da67d22f6 /www/js/views/submit.js | |
parent | 68e4f16fdd95d71816fad7fb312e944c1bbbe046 (diff) |
add some instructional text to the name request page
Diffstat (limited to 'www/js/views/submit.js')
-rw-r--r-- | www/js/views/submit.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js index 1dad90d..63864db 100644 --- a/www/js/views/submit.js +++ b/www/js/views/submit.js @@ -4,6 +4,7 @@ template: 'submit', id: 'submit-page', prev: 'details', + nopassword: 0, events: { 'pagehide': 'destroy', @@ -23,7 +24,7 @@ } template = _.template( tpl.get( this.template ) ); if ( this.model ) { - this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser.toJSON() })); + this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser.toJSON(), nopassword: this.nopassword })); } else { this.$el.html(template()); } @@ -180,6 +181,7 @@ template: 'submit_name', id: 'submit-name-page', prev: 'submit-email', + nopassword: 1, events: { 'pagehide': 'destroy', @@ -251,7 +253,8 @@ SubmitNameSetPasswordView: FMS.SubmitNameView.extend({ template: 'submit_name', id: 'submit-name-page-set-password', - prev: 'submit-set-password' + prev: 'submit-set-password', + nopassword: 0 }) }); })(FMS, Backbone, _, $); |