Fix selector in watcher.watch().

This commit is contained in:
Nicolas Stepien 2011-08-23 04:53:52 +02:00
parent 50dbd920f9
commit e19cbc8fc5
2 changed files with 4 additions and 4 deletions

View File

@ -1876,9 +1876,9 @@
}, },
watch: function(thread, id) { watch: function(thread, id) {
var el, props, watched, _name; var el, props, watched, _name;
el = $('span.filetitle'); el = $('span.filetitle', thread);
if (!el.textContent) { if (!el.textContent) {
el = $('blockquote'); el = $('blockquote', thread);
if (!el.textContent) { if (!el.textContent) {
return; return;
} }

View File

@ -1538,9 +1538,9 @@ watcher =
watcher.refresh() watcher.refresh()
watch: (thread, id) -> watch: (thread, id) ->
el = $ 'span.filetitle' el = $ 'span.filetitle', thread
if not el.textContent if not el.textContent
el = $ 'blockquote' el = $ 'blockquote', thread
if not el.textContent if not el.textContent
return return
props = props =