User:Pasleim/common.js

mediaWiki.loader.using(['jquery.ui.dialog'], function {   var link = mw.util.addPortletLink( 'p-tb', '#', 'Open dialog', 't-mworg', 'Open a sample dialog', 'm', '#t-print' )   $(link).click(function(event) { event.preventDefault; $(' ').text(" hello world hello world").dialog; }); });