Difference between revisions of "MediaWiki:Common.js"

From The ReActiveMicro Apple II Wiki
Jump to navigation Jump to search
(Created page with "Any JavaScript here will be loaded for all users on every page load.: /** * @source mediawiki.org/wiki/Snippets/Open_specific_external_links_in_new_window * @version 1...")
 
(No difference)

Latest revision as of 19:41, 28 May 2016

/* Any JavaScript here will be loaded for all users on every page load. */
/**
 * @source mediawiki.org/wiki/Snippets/Open_specific_external_links_in_new_window
 * @version 1
 */
$(function( $ )  {
	$( '#mw-content-text' ).on( 'click', '.newwin > a', function( e ) {
		window.open( e.target );
		return false;
	} );
} );