Difference between revisions of "MediaWiki:Common.js"

m
test
m (test)
m (test)
 
Line 8: Line 8:
$(function() {
$(function() {
$(document).on("click", ".copy-to-clipboard-button", function() {
$(document).on("click", ".copy-to-clipboard-button", function() {
var clipboard = new ClipboardJS('.copy-to-clipboard-button');
var clipboard = new ClipboardJS('.copy-to-clipboard-button');
clipboard.destroy();
 
      clipboard.on('success', function (e) {
        console.log(e);
      });
 
      clipboard.on('error', function (e) {
        console.log(e);
      });
   });
   });
});
});