Difference between revisions of "MediaWiki:Common.js"

m
test
m (test)
m (test)
Line 6: Line 6:
$(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");  
     new ClipboardJS(".copy-to-clipboard-button", {
     clipboard.destroy();
        text: function() {
            return url;
        }
     });
   });
   });
});
});