initialize: function (options) {\r
this.initializePanel(options);\r
this.model.bind('change:topic', this.topic, this);\r
+\r
+ this.$el.append('<div class="initial_loader" style="margin:1em;">Joining channel.. <span class="loader"></span></div>');\r
+ },\r
+\r
+ // Override the existing newMsg() method to remove the joining channel loader\r
+ newMsg: function () {\r
+ this.$el.find('.initial_loader').slideUp(function () {\r
+ $(this).remove();\r
+ });\r
+ return this.constructor.__super__.newMsg.apply(this, arguments);\r
},\r
\r
topic: function (topic) {\r