Add visible check for updating banlist
authorreality <tinmachin3@gmail.com>
Thu, 10 Apr 2014 18:05:09 +0000 (18:05 +0000)
committerreality <tinmachin3@gmail.com>
Thu, 10 Apr 2014 18:05:09 +0000 (18:05 +0000)
client/src/views/channelinfo.js

index c20b0461e5e44d625603a4d97983dab345b9dd32..e9fa47603ca4b270d3bc2973954f8a6c745dabe5 100644 (file)
@@ -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');