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:
parent
7f1b4b18e3
commit
9c30295b8e
@ -184,9 +184,9 @@ Index =
|
|||||||
true
|
true
|
||||||
|
|
||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
$.on @nodes.root, 'mousedown click', (e) ->
|
$.on @nodes.root, 'mousedown click', (e) =>
|
||||||
return unless e.button is 0 and e.shiftKey
|
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.
|
e.preventDefault() # Also on mousedown to prevent highlighting text.
|
||||||
|
|
||||||
toggleHide: (thread) ->
|
toggleHide: (thread) ->
|
||||||
|
|||||||
@ -97,9 +97,9 @@ ThreadWatcher =
|
|||||||
|
|
||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
$.addClass @nodes.root, 'watched' if ThreadWatcher.isWatched @thread
|
$.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
|
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.
|
e.preventDefault() # Also on mousedown to prevent highlighting thumbnail in Firefox.
|
||||||
|
|
||||||
addDialog: ->
|
addDialog: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user