aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/views/fms.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/views/fms.js')
-rw-r--r--www/js/views/fms.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/www/js/views/fms.js b/www/js/views/fms.js
index a1c6dd7..d701b00 100644
--- a/www/js/views/fms.js
+++ b/www/js/views/fms.js
@@ -16,11 +16,18 @@
return;
}
template = _.template( tpl.get( this.template ) );
+ var args = null;
+ if ( this.options.msg ) {
+ args = { msg: this.options.msg };
+ }
if ( this.model ) {
- this.$el.html(template(this.model.toJSON()));
- } else {
- this.$el.html(template());
+ if ( args ) {
+ args.model = this.model.toJSON();
+ } else {
+ args = this.model.toJSON();
+ }
}
+ this.$el.html(template(args));
this.afterRender();
return this;
},