blank post watcher title
This commit is contained in:
parent
50fb9dd522
commit
12b042c268
@ -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] = {});
|
||||
|
||||
@ -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= {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user