add a tooltip to the 'copy link' button on admin support tickets
This commit is contained in:
parent
d94a110105
commit
673420e3fe
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue