From 0aadc302a7f2114a063a57d3c7bc935d2dc1a62b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 10 May 2016 17:14:07 -0700 Subject: [PATCH] Add a data-type attribute to menus to indicate what type (post, header, thread watcher, gallery) they are. --- src/General/UI.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/General/UI.coffee b/src/General/UI.coffee index 960402825..ec7ce109e 100644 --- a/src/General/UI.coffee +++ b/src/General/UI.coffee @@ -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