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
+ // Only show the loader if this is a channel (ie. not a query)\r
+ if (this.model.isChannel()) {\r
+ this.$el.append('<div class="initial_loader" style="margin:1em;text-align:center;">Joining channel.. <span class="loader"></span></div>');\r
+ }\r
},\r
\r
// Override the existing newMsg() method to remove the joining channel loader\r
this.$el.find('.initial_loader').slideUp(function () {\r
$(this).remove();\r
});\r
+\r
return this.constructor.__super__.newMsg.apply(this, arguments);\r
},\r
\r