Fix bug with updating thread watcher icon when info is in catalog.
This commit is contained in:
parent
2468949823
commit
08c8eb77cc
@ -79,12 +79,12 @@ ThreadWatcher =
|
|||||||
node: ->
|
node: ->
|
||||||
return if @isReply
|
return if @isReply
|
||||||
if @isClone
|
if @isClone
|
||||||
toggler = $ '.watch-thread-link', @nodes.post
|
toggler = $ '.watch-thread-link', @nodes.info
|
||||||
else
|
else
|
||||||
toggler = $.el 'a',
|
toggler = $.el 'a',
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
className: 'watch-thread-link'
|
className: 'watch-thread-link'
|
||||||
$.before $('input', @nodes.post), toggler
|
$.before $('input', @nodes.info), toggler
|
||||||
boardID = @board.ID
|
boardID = @board.ID
|
||||||
threadID = @thread.ID
|
threadID = @thread.ID
|
||||||
data = ThreadWatcher.db.get {boardID, threadID}
|
data = ThreadWatcher.db.get {boardID, threadID}
|
||||||
@ -333,7 +333,7 @@ ThreadWatcher =
|
|||||||
isWatched = ThreadWatcher.isWatched thread
|
isWatched = ThreadWatcher.isWatched thread
|
||||||
if thread.OP
|
if thread.OP
|
||||||
for post in [thread.OP, thread.OP.clones...]
|
for post in [thread.OP, thread.OP.clones...]
|
||||||
toggler = $ '.watch-thread-link', post.nodes.post
|
toggler = $ '.watch-thread-link', post.nodes.info
|
||||||
ThreadWatcher.setToggler toggler, isWatched
|
ThreadWatcher.setToggler toggler, isWatched
|
||||||
thread.catalogView.nodes.root.classList.toggle 'watched', isWatched if thread.catalogView
|
thread.catalogView.nodes.root.classList.toggle 'watched', isWatched if thread.catalogView
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user