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/sent.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/sent.js')
-rw-r--r-- | www/js/views/sent.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/js/views/sent.js b/www/js/views/sent.js index 03ec7a7..179d9f7 100644 --- a/www/js/views/sent.js +++ b/www/js/views/sent.js @@ -10,6 +10,17 @@ 'pagebeforeshow': 'beforeDisplay', 'pageshow': 'afterDisplay', 'vclick .ui-btn-left': 'onClickButtonPrev' + }, + + render: function(){ + if ( !this.template ) { + console.log('no template to render'); + return; + } + template = _.template( tpl.get( this.template ) ); + this.$el.html(template(FMS.createdReport.toJSON())); + this.afterRender(); + return this; } }) }); |