aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/submit.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/submit.js')
-rw-r--r--www/js/views/submit.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/views/submit.js b/www/js/views/submit.js
index 1ce411e..e222ffe 100644
--- a/www/js/views/submit.js
+++ b/www/js/views/submit.js
@@ -27,7 +27,7 @@
}
template = _.template( tpl.get( this.template ) );
if ( this.model ) {
- this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser }));
+ this.$el.html(template({ model: this.model.toJSON(), user: FMS.currentUser.toJSON() }));
} else {
this.$el.html(template());
}
@@ -42,6 +42,9 @@
},
onReportSync: function(model, resp, options) {
+ if ( FMS.currentUser ) {
+ FMS.currentUser.save();
+ }
this.navigate( 'sent', 'left' );
},