Difference between revisions of "MediaWiki:Common.js"

From SEBoK
Jump to navigation Jump to search
 
(Blanked the page)
 
(One intermediate revision by the same user not shown)
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://], [href^=https://]' )
 
        .attr( 'target' , '_blank' );
 

Latest revision as of 20:03, 12 March 2015