Put thread creation auto-watch back.
This commit is contained in:
parent
f57cfb1fe0
commit
ea01038cbc
@ -2058,6 +2058,13 @@
|
|||||||
$.before(input, favicon);
|
$.before(input, favicon);
|
||||||
}
|
}
|
||||||
watcher.refresh();
|
watcher.refresh();
|
||||||
|
if (conf['Auto Watch']) {
|
||||||
|
if (!g.REPLY) {
|
||||||
|
$('.postarea form').action += '?watch';
|
||||||
|
} else if (/watch/.test(location.search) && $('img.favicon').src === Favicon.empty) {
|
||||||
|
watcher.watch(null, g.THREAD_ID);
|
||||||
|
}
|
||||||
|
}
|
||||||
return $.on(window, 'storage', function(e) {
|
return $.on(window, 'storage', function(e) {
|
||||||
if (e.key === ("" + NAMESPACE + "watched")) return watcher.refresh();
|
if (e.key === ("" + NAMESPACE + "watched")) return watcher.refresh();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1635,6 +1635,12 @@ watcher =
|
|||||||
#populate watcher, display watch buttons
|
#populate watcher, display watch buttons
|
||||||
watcher.refresh()
|
watcher.refresh()
|
||||||
|
|
||||||
|
if conf['Auto Watch']
|
||||||
|
unless g.REPLY
|
||||||
|
$('.postarea form').action += '?watch'
|
||||||
|
else if /watch/.test(location.search) and $('img.favicon').src is Favicon.empty
|
||||||
|
watcher.watch null, g.THREAD_ID
|
||||||
|
|
||||||
$.on window, 'storage', (e) -> watcher.refresh() if e.key is "#{NAMESPACE}watched"
|
$.on window, 'storage', (e) -> watcher.refresh() if e.key is "#{NAMESPACE}watched"
|
||||||
|
|
||||||
refresh: ->
|
refresh: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user