User:DannyS712 test/extra menu demo2.js

mw.loader.using( 'mediawiki.util', function {    $(document).ready( function  { var location = (window.THIS_SCRIPT_LOCATION || 'p-cactions'); var link = mw.util.addPortletLink( location, '#', 'Testing2', 'ca-test2', 'Testing2'); $( link ).click( function ( event ) {           event.preventDefault;            console.log( "Its a test!" );       } );    } ); } );