Skip to content

Commit

Permalink
Update to template for HTML in topic.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbarch committed Jul 23, 2012
1 parent 6ce8c45 commit a0394a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assets/js/client.js
Expand Up @@ -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']
});
Expand Down Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion assets/js/views/chat.js
Expand Up @@ -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));
},
Expand Down
2 changes: 1 addition & 1 deletion views/templates.jade
Expand Up @@ -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
Expand Down

0 comments on commit a0394a1

Please sign in to comment.