Add a data-type attribute to menus to indicate what type (post, header, thread watcher, gallery) they are.
This commit is contained in:
parent
e6d4a90d02
commit
0aadc302a7
@ -33,6 +33,7 @@ class Menu
|
|||||||
className: 'dialog'
|
className: 'dialog'
|
||||||
id: 'menu'
|
id: 'menu'
|
||||||
tabIndex: 0
|
tabIndex: 0
|
||||||
|
menu.dataset.type = @type
|
||||||
$.on menu, 'click', (e) -> e.stopPropagation()
|
$.on menu, 'click', (e) -> e.stopPropagation()
|
||||||
$.on menu, 'keydown', @keybinds
|
$.on menu, 'keydown', @keybinds
|
||||||
menu
|
menu
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user