User:Lee Worden/common.js

// messing with js in Brion Vibber tutorial session at WP SF Hackathon mw.loader.using('jquery.ui.dialog', function { // Add MediaWiki.org-link in the toolbox before the Print-link var link = mw.util.addPortletLink( 'p-tb', '//www.mediawiki.org/', 'MediaWiki.org', 't-mworg', 'Go to MediaWiki.org ', 'm', '#t-print' ); $(link).click(fnction(event) { eventpreventDefault; $(' ').text('Hellow world').dialog; })