Commit e635fb4f authored by ichim-david's avatar ichim-david

Chain jQuery methods for show and render of onChatRoomMessage

parent 5ee9a678
...@@ -1049,15 +1049,15 @@ ...@@ -1049,15 +1049,15 @@
}, },
show: function () { show: function () {
this.$el.css({'opacity': 0}); this.$el.css({'opacity': 0,
this.$el.css({'display': 'inline'}); 'display': 'inline'})
this.$el.animate({opacity: '1'}, 200); .animate({opacity: '1'}, 200);
return this; return this;
}, },
render: function () { render: function () {
this.$el.attr('id', this.model.get('box_id')); this.$el.attr('id', this.model.get('box_id'))
this.$el.html(this.template(this.model.toJSON())); .html(this.template(this.model.toJSON()));
return this; return this;
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment