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')) {
unread.init();
}
if ($.config('Auto Watch') && location.hash === '#watch') {
watcher.watch($('body > form'), $('form > input[value=delete]').name);
if ($.config('Auto Watch') && $.config('Thread Watcher') && location.hash === '#watch' && $('img.favicon').src === Favicon.empty) {
watcher.watch(null, g.THREAD_ID);
}
} else {
threading.init();

View File

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