Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to template for HTML in topic.

  • Loading branch information...
commit a0394a15ba0baa2d436064ffd946581fb71e06d6 1 parent 6ce8c45
Eric Barch ericbarch authored
4 assets/js/client.js
View
@@ -88,7 +88,7 @@ $(function() {
var channelTabs = irc.appView.channelList.channelTabs;
var channelTab = channelTabs[channelTabs.length-1];
channel.set({
- topic: utils.linkify(value['topic']),
+ topic: value['topic'],
unread: value['unread_messages'],
unreadMentions: value['unread_mentions']
});
@@ -223,7 +223,7 @@ $(function() {
irc.socket.on('topic', function(data) {
var channel = irc.chatWindows.getByName(data.channel.toLowerCase());
- channel.set({topic: utils.linkify(data.topic)});
+ channel.set({topic: data.topic});
var topicMessage = new Message({type: 'topic', nick: data.nick, topic: utils.linkify(data.topic)});
channel.stream.add(topicMessage);
});
2  assets/js/views/chat.js
View
@@ -17,7 +17,7 @@ var ChatView = Backbone.View.extend({
var topic = this.model.get('topic') || '';
var context = {
title: this.model.get('name'),
- topic: topic
+ topic: utils.linkify(topic)
};
this.$('#chat-bar').html(ich.titlebar(context));
},
2  views/templates.jade
View
@@ -108,7 +108,7 @@ script(id="overview_register", type="text/html")
script(id="titlebar", type="text/html")
.titlebar
span(class="window_title") {{title}}
- span(id="topic") {{topic}}
+ span(id="topic") {{{topic}}}
script(id="chat", type="text/html")
#main-window
Please sign in to comment.
Something went wrong with that request. Please try again.