From 54e502c02053c41a6db7d89dc41acfb63155b5d6 Mon Sep 17 00:00:00 2001 From: Adam Spotton Date: Sun, 24 Jun 2018 11:52:55 -0400 Subject: [PATCH] Add 'User information' (whois) support to the sidebar context menu --- client/js/contextMenuFactory.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/js/contextMenuFactory.js b/client/js/contextMenuFactory.js index 951fd028..52538ad5 100644 --- a/client/js/contextMenuFactory.js +++ b/client/js/contextMenuFactory.js @@ -75,10 +75,10 @@ function addWhoisItem() { }); addContextMenuItem({ - check: (target) => target.hasClass("user"), + check: (target) => target.hasClass("user") || target.hasClass("query"), className: "action-whois", displayName: "User information", - data: (target) => target.attr("data-name"), + data: (target) => target.attr("data-name") || target.attr("aria-label"), callback: whois, }); } @@ -385,6 +385,7 @@ function addIgnoreListItem() { } function addDefaultItems() { + addFocusItem(); addWhoisItem(); addQueryItem(); addKickItem(); @@ -392,7 +393,6 @@ function addDefaultItems() { addDeopItem(); addVoiceItem(); addDevoiceItem(); - addFocusItem(); addEditNetworkItem(); addJoinItem(); addChannelListItem();