better auto-watch condition
This commit is contained in:
parent
5c58d3f031
commit
b4169832c6
@ -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();
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user