Channels clickable in chanlist applet
authorDarren <darren@Darrens-MacBook-Pro.local>
Fri, 12 Apr 2013 13:46:53 +0000 (14:46 +0100)
committerDarren <darren@Darrens-MacBook-Pro.local>
Fri, 12 Apr 2013 13:46:53 +0000 (14:46 +0100)
client/assets/dev/applet_chanlist.js

index 629ea092478d0e9144b1e40e1b886bf959c47baa..222af410082595ec0e7d9582fba799b93a75199d 100644 (file)
@@ -65,7 +65,7 @@
             }\r
             _.each(channels, function (chan) {\r
                 var html, channel;\r
-                html = '<tr><td><a class="chan">' + _.escape(chan.channel) + '</a></td><td class="num_users" style="text-align: center;">' + chan.num_users + '</td><td style="padding-left: 2em;">' + formatIRCMsg(_.escape(chan.topic)) + '</td></tr>';\r
+                html = '<tr><td><a class="chan" data-channel="' + chan.channel + '">' + _.escape(chan.channel) + '</a></td><td class="num_users" style="text-align: center;">' + chan.num_users + '</td><td style="padding-left: 2em;">' + formatIRCMsg(_.escape(chan.topic)) + '</td></tr>';\r
                 chan.html = html;\r
                 that.view.channels.push(chan);\r
             });\r