Merge "CSSMin: version URLs based on content, not mtime"
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.hlist.js
1 /*!
2 * .hlist fallbacks for IE 8.
3 * @author [[User:Edokter]]
4 */
5 ( function ( mw, $ ) {
6 var profile = $.client.profile();
7
8 if ( profile.name === 'msie' && profile.versionNumber === 8 ) {
9 /* Add pseudo-selector class to last-child list items */
10 mw.hook( 'wikipage.content' ).add( function ( $content ) {
11 $content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
12 .addClass( 'hlist-last-child' );
13 } );
14 }
15 }( mediaWiki, jQuery ) );