Merge "API: Recognize an "Api-User-Agent" header"
[mediawiki.git] / resources / src / mediawiki / mediawiki.hlist.js
blob8ba57f6f4b04bed91d8eecb7add49e425f99246a
1 /*!
2  * .hlist fallbacks for IE 8.
3  * @author [[User:Edokter]]
4  */
5 ( function ( mw, $ ) {
6         var profile = $.client.profile();
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 ) );