Fix shift+click and alt+click in catalog.

Was broken by 9cee88ce3a9676adb999b6fc2536716a7e8debfb which
removed data-full-i-d on catalog threads.
This commit is contained in:
ccd0 2016-09-25 18:59:20 -07:00
parent 7f1b4b18e3
commit 9c30295b8e
2 changed files with 4 additions and 4 deletions

View File

@ -184,9 +184,9 @@ Index =
true
catalogNode: ->
$.on @nodes.root, 'mousedown click', (e) ->
$.on @nodes.root, 'mousedown click', (e) =>
return unless e.button is 0 and e.shiftKey
Index.toggleHide g.threads[@dataset.fullID] if e.type is 'click'
Index.toggleHide @thread if e.type is 'click'
e.preventDefault() # Also on mousedown to prevent highlighting text.
toggleHide: (thread) ->

View File

@ -97,9 +97,9 @@ ThreadWatcher =
catalogNode: ->
$.addClass @nodes.root, 'watched' if ThreadWatcher.isWatched @thread
$.on @nodes.root, 'mousedown click', (e) ->
$.on @nodes.root, 'mousedown click', (e) =>
return unless e.button is 0 and e.altKey
ThreadWatcher.toggle g.threads[@dataset.fullID] if e.type is 'click'
ThreadWatcher.toggle @thread if e.type is 'click'
e.preventDefault() # Also on mousedown to prevent highlighting thumbnail in Firefox.
addDialog: ->