Add a data-type attribute to menus to indicate what type (post, header, thread watcher, gallery) they are.

This commit is contained in:
ccd0 2016-05-10 17:14:07 -07:00
parent e6d4a90d02
commit 0aadc302a7

View File

@ -33,6 +33,7 @@ class Menu
className: 'dialog'
id: 'menu'
tabIndex: 0
menu.dataset.type = @type
$.on menu, 'click', (e) -> e.stopPropagation()
$.on menu, 'keydown', @keybinds
menu