Cleaned up DatabaseBase constructor to use an array
[lhc/web/wiklou.git] / skins / vector / collapsibleTabs.js
index ad77c36..e3c2c51 100644 (file)
@@ -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 ) {
@@ -27,7 +27,7 @@
                // if we haven't already bound our resize hanlder, bind it now
                if ( !$.collapsibleTabs.boundEvent ) {
                        $( window )
-                               .delayedBind( '500', 'resize', function ( ) {
+                               .delayedBind( 500, 'resize', function () {
                                        $.collapsibleTabs.handleResize();
                                } );
                }
                                        $.collapsibleTabs
                                                .moveToExpanded( data.collapsedContainer + ' ' + data.collapsible + ':first' );
                                }
-                       });
+                       } );
                },
                moveToCollapsed: function ( ele ) {
                        var data, expContainerSettings, target,