Fix for bug on Firefox.
authorJack Allnutt <m2ys4u@Gmail.com>
Thu, 11 Oct 2012 11:25:10 +0000 (12:25 +0100)
committerJack Allnutt <m2ys4u@Gmail.com>
Thu, 11 Oct 2012 11:25:10 +0000 (12:25 +0100)
Now able to click channel names to JOIN them on Firefox.

client/dev/view.js

index 8e10785caf7ebea212abe2f022b85882d69329f2..735a4c6776e8ca6fd2316c4063a955d999f24bc0 100644 (file)
@@ -340,8 +340,13 @@ kiwi.view.Panel = Backbone.View.extend({
             this.msg_count--;\r
         }\r
     },\r
-    chanClick: function (x) {\r
-        kiwi.gateway.join($(x.srcElement).text());\r
+    chanClick: function (event) {\r
+        if (event.target) {\r
+            kiwi.gateway.join($(event.target).text());\r
+        } else {\r
+            // IE...\r
+            kiwi.gateway.join($(event.srcElement).text());\r
+        }\r
     },\r
     show: function () {\r
         var $this = this.$el;\r