watcher title text

This commit is contained in:
James Campos 2011-12-03 12:08:54 +08:00 committed by Mayhem
parent 2af711f8af
commit 816576b573
2 changed files with 7 additions and 3 deletions

View File

@ -2178,10 +2178,12 @@
return watcher.refresh();
},
watch: function(thread, id) {
var props, watched, _name;
var props, text, watched, _name;
text = getTitle(thread);
props = {
href: "/" + g.BOARD + "/res/" + id,
textContent: getTitle(thread)
textContent: text,
title: text
};
watched = $.get('watched', {});
watched[_name = g.BOARD] || (watched[_name] = {});

View File

@ -1741,9 +1741,11 @@ watcher =
watcher.refresh()
watch: (thread, id) ->
text = getTitle thread
props =
href: "/#{g.BOARD}/res/#{id}"
textContent: getTitle(thread)
textContent: text
title: text
watched = $.get 'watched', {}
watched[g.BOARD] or= {}