disabled( element, true );
assert.lacksClasses( element.tabs( "widget" ), "ui-state-disabled" );
- assert.lacksClasses( element.tabs( "widget" ), "ui-tabs-disabled" );
+ assert.hasClasses( element.tabs( "widget" ), "ui-tabs-disabled" );
ok( !element.tabs( "widget" ).attr( "aria-disabled" ), "after: wrapper doesn't have aria-disabled attr" );
event = $.Event( "click" );
return;
}
- if ( key === "disabled" ) {
-
- // don't use the widget factory's disabled handling
- this._setupDisabled( value );
- return;
- }
-
this._super( key, value );
if ( key === "collapsible" ) {
},
_refresh: function() {
- this._setupDisabled( this.options.disabled );
+ this._setOptionDisabled( this.options.disabled );
this._setupEvents( this.options.event );
this._setupHeightStyle( this.options.heightStyle );
.data( "ui-tabs-destroy", true );
},
- _setupDisabled: function( disabled ) {
+ _setOptionDisabled: function( disabled ) {
var currentItem, li, i;
if ( $.isArray( disabled ) ) {
}
this.options.disabled = disabled;
+
+ this._toggleClass( this.widget(), this.widgetFullName + "-disabled", null,
+ disabled === true );
},
_setupEvents: function( event ) {
} );
}
}
- this._setupDisabled( disabled );
+ this._setOptionDisabled( disabled );
},
disable: function( index ) {
disabled = [ index ];
}
}
- this._setupDisabled( disabled );
+ this._setOptionDisabled( disabled );
},
load: function( index, event ) {