blank post watcher title

This commit is contained in:
James Campos 2011-08-25 00:15:18 -07:00
parent 50fb9dd522
commit 12b042c268
2 changed files with 7 additions and 2 deletions

View File

@ -1898,10 +1898,13 @@
el = $('span.filetitle', thread);
if (!el.textContent) {
el = $('blockquote', thread);
if (!el.textContent) {
el = $('span.postername', thread);
}
}
props = {
href: "/" + g.BOARD + "/res/" + id,
textContent: el.textContent ? "/" + g.BOARD + "/ - " + ($.innerText(el).slice(0, 25)) : d.title
textContent: "/" + g.BOARD + "/ - " + ($.innerText(el).slice(0, 25))
};
watched = $.get('watched', {});
watched[_name = g.BOARD] || (watched[_name] = {});

View File

@ -1561,9 +1561,11 @@ watcher =
el = $ 'span.filetitle', thread
if not el.textContent
el = $ 'blockquote', thread
if not el.textContent
el = $ 'span.postername', thread
props =
href: "/#{g.BOARD}/res/#{id}"
textContent: if el.textContent then "/#{g.BOARD}/ - #{$.innerText(el)[...25]}" else d.title
textContent: "/#{g.BOARD}/ - #{$.innerText(el)[...25]}"
watched = $.get 'watched', {}
watched[g.BOARD] or= {}