From 673420e3fe1e55d7ad6bee66da28aab4e24be616 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 10 Aug 2022 12:06:40 +0530 Subject: [PATCH] add a tooltip to the 'copy link' button on admin support tickets --- www/support/ui.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/support/ui.js b/www/support/ui.js index 18eff628e..e42bfa744 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -312,6 +312,8 @@ Messages.support_formCategoryError = "Please select a ticket category from the d return form; }; + Messages.ui_copyLinkToClipboard = "Copy link to clipboard"; // XXX + var makeTicket = function (ctx, $div, content, onHide) { var common = ctx.common; var metadataMgr = common.getMetadataMgr(); @@ -332,7 +334,10 @@ Messages.support_formCategoryError = "Please select a ticket category from the d var url; if (ctx.isAdmin) { ticketCategory = Messages['support_cat_'+(content.category || 'all')] + ' - '; - url = h('button.btn.fa.fa-clipboard'); + url = h('button.btn.fa.fa-clipboard', { + title: Messages.ui_copyLinkToClipboard, + // XXX other accessibility attributes? + }); $(url).click(function (e) { e.stopPropagation(); var link = privateData.origin + privateData.pathname + '#' + 'support-' + content.id;