resources: Strip '$' and 'mw' from file closures
[lhc/web/wiklou.git] / resources / src / mediawiki.htmlform / checkmatrix.js
1 /*
2 * HTMLForm enhancements:
3 * Show fancy tooltips for checkmatrix fields.
4 */
5 ( function () {
6
7 mw.hook( 'htmlform.enhance' ).add( function ( $root ) {
8 var $matrixTooltips = $root.find( '.mw-htmlform-matrix .mw-htmlform-tooltip' );
9 if ( $matrixTooltips.length ) {
10 mw.loader.using( 'jquery.tipsy', function () {
11 $matrixTooltips.tipsy( { gravity: 's' } );
12 } );
13 }
14 } );
15
16 }() );