Fixes to take comments into account
authorCory Chaplin <cory.chaplin@laposte.net>
Wed, 26 Mar 2014 23:11:21 +0000 (00:11 +0100)
committerCory Chaplin <cory.chaplin@laposte.net>
Wed, 26 Mar 2014 23:11:21 +0000 (00:11 +0100)
client/src/applets/chanlist.js

index 9791a4a7d35453a915e857fed63ca5c3ea6608b8..c85bba83aa76f061a17dab90887f1f2295b3739e 100644 (file)
                 that = this,\r
                 i;\r
             \r
+            this.sorting_channels = false;\r
+            \r
             if (override_channels !== undefined) {\r
                 that.channels = override_channels;\r
                 tbody.remove();\r
                 this.sorting_channels = true;\r
             } else {\r
-                that.channels = this.sortChannels(this.channels, this.order);\r
+                this.channels = this.sortChannels(this.channels, this.order);\r
             }\r
 \r
             // Create the sort icon container and clean previous any previous ones\r