https://bugzilla.wikimedia.org/show_bug.cgi?id=50196

--- Comment #1 from kipod <[email protected]> ---
ok. this is not related to  bug 50193, but rather to something else in
collapsibleTabs.js:

the problem is that collapsibleTabs.js has a "module global" variable named
"rtl", which is calculated on startup by calling 

var rtl = $( 'body' ).is( '.rtl' );

the problem is that this module is loaded too early, and at this point in time, 

$( 'body' ).is( '.rtl' )

returns false, even though it *is* and RTL wiki.

we should postpone the calculation of this variable to a later time: e.g.,
inside $.fn.collapsibleTabs(), do something like

if ( typeof rtl === "undefined" )
    rtl = $( 'body' ).is( '.rtl' );

also, if this code is exactly equal to upstream, methinks we should report the
issue there too.

peace.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to