From: Alex Monk Date: Tue, 25 Jun 2013 23:44:42 +0000 (+0100) Subject: Fix history and add section tabs being collapsed on RTL wikis X-Git-Tag: 1.31.0-rc.0~19354^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=163250832d098670f615feb02f6b9cbf264c628f;p=lhc%2Fweb%2Fwiklou.git Fix history and add section tabs being collapsed on RTL wikis The module is now loaded in the 'top' queue instead of the 'bottom' one, so the tag isn't loaded when the RTL detection is done. Use the tag's 'dir' attribute instead. Bug: 50196 Change-Id: I6e277a9503a1e6003bc7bf9f9468ed7b35552e60 --- diff --git a/skins/vector/collapsibleTabs.js b/skins/vector/collapsibleTabs.js index ad77c36168..eb84325a5f 100644 --- a/skins/vector/collapsibleTabs.js +++ b/skins/vector/collapsibleTabs.js @@ -2,7 +2,7 @@ * Collapsible tabs jQuery Plugin */ ( function ( $ ) { - var rtl = $( 'body' ).is( '.rtl' ); + var rtl = $( 'html' ).attr( 'dir' ) === 'rtl'; $.fn.collapsibleTabs = function ( options ) { // return if the function is called on an empty jquery object if ( !this.length ) {