Don't open ticket when copying its url

pull/1/head
yflory 4 years ago
parent 792c8e4a15
commit a31394888d

@ -258,7 +258,8 @@ define([
if (ctx.isAdmin) { if (ctx.isAdmin) {
ticketCategory = Messages['support_cat_'+(content.category || 'all')] + ' - '; ticketCategory = Messages['support_cat_'+(content.category || 'all')] + ' - ';
url = h('button.btn.btn-primary.fa.fa-clipboard'); url = h('button.btn.btn-primary.fa.fa-clipboard');
$(url).click(function () { $(url).click(function (e) {
e.stopPropagation();
var link = privateData.origin + privateData.pathname + '#' + 'support-' + content.id; var link = privateData.origin + privateData.pathname + '#' + 'support-' + content.id;
var success = Clipboard.copy(link); var success = Clipboard.copy(link);
if (success) { UI.log(Messages.shareSuccess); } if (success) { UI.log(Messages.shareSuccess); }

Loading…
Cancel
Save