From 8f0227761a75be521315ad17a5dd8807679f1e53 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 11 Oct 2012 12:25:10 +0100 Subject: [PATCH] Fix for bug on Firefox. Now able to click channel names to JOIN them on Firefox. --- client/dev/view.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/client/dev/view.js b/client/dev/view.js index 8e10785..735a4c6 100644 --- a/client/dev/view.js +++ b/client/dev/view.js @@ -340,8 +340,13 @@ kiwi.view.Panel = Backbone.View.extend({ this.msg_count--; } }, - chanClick: function (x) { - kiwi.gateway.join($(x.srcElement).text()); + chanClick: function (event) { + if (event.target) { + kiwi.gateway.join($(event.target).text()); + } else { + // IE... + kiwi.gateway.join($(event.srcElement).text()); + } }, show: function () { var $this = this.$el; -- 2.25.1