MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 125: | Line 125: | ||
$copy.addEventListener('click', function (e) { | $copy.addEventListener('click', function (e) { | ||
copyStringToClipboard(decodeURI(location.href)); | copyStringToClipboard(decodeURI(location.href)); | ||
alert(' | alert('Saved the link to the clipboard.'); | ||
e.preventDefault(); | e.preventDefault(); | ||
}); | }); | ||