* 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 ) {
// 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,