User:Konjurer/common.js

mediaWiki.loader.using(['jquery.ui.dialog'], function {  var link = mw.util.addPortletLink( 'p-support', '//www.mediawiki.org/', 'Open dialog!', 't-mworg', 'Open a cool dialog', 'm', '#t-print' );

$(link).click(function(event) {     event.preventDefault;      alert('Hello Tim');   }); });