From: reality Date: Thu, 10 Apr 2014 18:05:09 +0000 (+0000) Subject: Add visible check for updating banlist X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=17a844ce0610f8d0334b3ebe5644a1857c6f69ee;p=KiwiIRC.git Add visible check for updating banlist --- diff --git a/client/src/views/channelinfo.js b/client/src/views/channelinfo.js index c20b046..e9fa476 100644 --- a/client/src/views/channelinfo.js +++ b/client/src/views/channelinfo.js @@ -146,6 +146,10 @@ _kiwi.view.ChannelInfo = Backbone.View.extend({ toggleBanList: function (event) { event.preventDefault(); this.$el.find('.channel-banlist table').toggle(); + + if(!this.$el.find('.channel-banlist table').is(':visible')) + return; + var channel = this.model.get('channel'), network = channel.get('network');