diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-06 13:17:39 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-06 13:17:39 +0100 |
commit | 5535f7be35b1cdfbe709f1093ed9f350e74d24dc (patch) | |
tree | 6edaf40b3a4d6e0274fad98e6b32fb6a62baf3b9 /www/js/views/submit.js | |
parent | 71921a7ae6098bfb42451f8a4dee7dc4f45b28c5 (diff) |
Change confirmation screen content based on whether confirmation email
sent or user was signed in
Diffstat (limited to 'www/js/views/submit.js')
-rw-r--r-- | www/js/views/submit.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js index bab9396..f3214db 100644 --- a/www/js/views/submit.js +++ b/www/js/views/submit.js @@ -55,6 +55,12 @@ if ( FMS.currentUser ) { FMS.currentUser.save(); } + if (resp.report) { + this.report.set('site_id', resp.report); + this.report.set('site_url', CONFIG.FMS_URL + '/report/' + resp.report); + } else { + this.report.set('email_confirm', 1); + } var reset = FMS.removeDraft( model.id, true); var that = this; reset.done( function() { that.onRemoveDraft(); } ); |