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