Difference between revisions of "MediaWiki:Common.js"

From SEBoK
Jump to: navigation, search
(Blanked the page)
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
 
  
/**
 
* Open external links in the sidebar in a new window
 
*
 
*/
 
$( '#mw-panel, #panel' ) // #panel is for pre-1.17 compatibility
 
        .find('a[class*="external"]' )
 
        .filter( '[href^=http://]' )
 
        .attr( 'target' , '_blank' );
 

Latest revision as of 20:03, 12 March 2015