25 char watcher title

This commit is contained in:
James Campos 2011-08-25 15:45:54 -07:00
parent 10d222c8d6
commit 2716d50889
2 changed files with 2 additions and 2 deletions

View File

@ -1890,7 +1890,7 @@
var props, watched, _name;
props = {
href: "/" + g.BOARD + "/res/" + id,
textContent: getTitle(thread)
textContent: getTitle(thread).slice(0, 25)
};
watched = $.get('watched', {});
watched[_name = g.BOARD] || (watched[_name] = {});

View File

@ -1557,7 +1557,7 @@ watcher =
watch: (thread, id) ->
props =
href: "/#{g.BOARD}/res/#{id}"
textContent: getTitle thread
textContent: getTitle(thread)[...25]
watched = $.get 'watched', {}
watched[g.BOARD] or= {}