From 163250832d098670f615feb02f6b9cbf264c628f Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Wed, 26 Jun 2013 00:44:42 +0100 Subject: [PATCH] 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 --- skins/vector/collapsibleTabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1