From: Trevor Parscal Date: Mon, 13 Sep 2010 18:04:29 +0000 (+0000) Subject: Added alias of jQuery to $j - this is only to get site/user scripts that were using... X-Git-Tag: 1.31.0-rc.0~34949 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=f80f2646996435ae801a0d808e0e28f9e16a790a;p=lhc%2Fweb%2Fwiklou.git Added alias of jQuery to $j - this is only to get site/user scripts that were using $j to work. Use of $j should be phased out in favor of $. If you are writing a library that's intended for re-use, please wrap it in a closure that passes jQuery as $ such as "( function( $ ) { /* code here */ } )( jQuery );" so that people using alternative short names for jQuery can use the code unmodified. --- diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index 0eda62608e..79f7aba4f0 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -1093,4 +1093,8 @@ hookEvent( 'load', runOnloadHook ); if ( ie6_bugs ) { importScriptURI( stylepath + '/common/IEFixes.js' ); -} \ No newline at end of file +} + +// jQuery alias + +window.$j = jQuery; \ No newline at end of file