From 17a844ce0610f8d0334b3ebe5644a1857c6f69ee Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 10 Apr 2014 18:05:09 +0000 Subject: [PATCH] Add visible check for updating banlist --- client/src/views/channelinfo.js | 4 ++++ 1 file changed, 4 insertions(+) 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'); -- 2.25.1