better auto-watch condition

This commit is contained in:
James Campos 2011-05-06 23:59:29 -07:00
parent 5c58d3f031
commit b4169832c6
2 changed files with 5 additions and 4 deletions

View File

@ -2184,8 +2184,8 @@
if ($.config('Unread Count')) { if ($.config('Unread Count')) {
unread.init(); unread.init();
} }
if ($.config('Auto Watch') && location.hash === '#watch') { if ($.config('Auto Watch') && $.config('Thread Watcher') && location.hash === '#watch' && $('img.favicon').src === Favicon.empty) {
watcher.watch($('body > form'), $('form > input[value=delete]').name); watcher.watch(null, g.THREAD_ID);
} }
} else { } else {
threading.init(); threading.init();

View File

@ -1697,8 +1697,9 @@ main =
if $.config 'Unread Count' if $.config 'Unread Count'
unread.init() unread.init()
if $.config('Auto Watch') and location.hash is '#watch' if $.config('Auto Watch') and $.config('Thread Watcher') and
watcher.watch($('body > form'), $('form > input[value=delete]').name) location.hash is '#watch' and $('img.favicon').src is Favicon.empty
watcher.watch null, g.THREAD_ID
else #not reply else #not reply
threading.init() threading.init()