From 4c2d8d020b873c57c76574b11f29236aa1d2ec67 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 17 Feb 2013 18:50:17 +0000 Subject: [PATCH] Don't show a loader for query panels --- client/assets/dev/view.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/assets/dev/view.js b/client/assets/dev/view.js index 1bcbbdc..1bc9bb2 100644 --- a/client/assets/dev/view.js +++ b/client/assets/dev/view.js @@ -579,7 +579,10 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({ this.initializePanel(options); this.model.bind('change:topic', this.topic, this); - this.$el.append('
Joining channel..
'); + // Only show the loader if this is a channel (ie. not a query) + if (this.model.isChannel()) { + this.$el.append('
Joining channel..
'); + } }, // Override the existing newMsg() method to remove the joining channel loader @@ -587,6 +590,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({ this.$el.find('.initial_loader').slideUp(function () { $(this).remove(); }); + return this.constructor.__super__.newMsg.apply(this, arguments); }, -- 2.25.1