@@ -297,7 +297,7 @@ $.widget("ui.selectmenu", {
297
297
for ( var i = 0 ; i < selectOptionData . length ; i ++ ) {
298
298
var thisLiAttr = { role : 'presentation' } ;
299
299
if ( selectOptionData [ i ] . disabled ) {
300
- thisLiAttr [ 'class' ] = this . namespace + ' -state-disabled';
300
+ thisLiAttr [ 'class' ] = 'ui -state-disabled';
301
301
}
302
302
var thisAAttr = {
303
303
html : selectOptionData [ i ] . text || ' ' ,
@@ -360,7 +360,7 @@ $.widget("ui.selectmenu", {
360
360
if ( this . list . find ( 'li.' + optGroupName ) . length ) {
361
361
this . list . find ( 'li.' + optGroupName + ':last ul' ) . append ( thisLi ) ;
362
362
} else {
363
- $ ( '<li role="presentation" class="ui-selectmenu-group ' + optGroupName + ( selectOptionData [ i ] . parentOptGroup . attr ( "disabled" ) ? ' ' + this . namespace + ' -state-disabled" aria-disabled="true"' : '"' ) + '><span class="ui-selectmenu-group-label">' + selectOptionData [ i ] . parentOptGroup . attr ( 'label' ) + '</span><ul></ul></li> ' )
363
+ $ ( '<li role="presentation" class="ui-selectmenu-group ' + optGroupName + ( selectOptionData [ i ] . parentOptGroup . attr ( "disabled" ) ? ' ' + 'ui -state-disabled" aria-disabled="true"' : '"' ) + '><span class="ui-selectmenu-group-label">' + selectOptionData [ i ] . parentOptGroup . attr ( 'label' ) + '</span><ul></ul></li> ' )
364
364
. appendTo ( this . list )
365
365
. find ( 'ul' )
366
366
. append ( thisLi ) ;
@@ -447,7 +447,7 @@ $.widget("ui.selectmenu", {
447
447
448
448
destroy : function ( ) {
449
449
this . element . removeData ( this . widgetName )
450
- . removeClass ( 'ui-selectmenu-disabled' + ' ' + this . namespace + ' -state-disabled' )
450
+ . removeClass ( 'ui-selectmenu-disabled' + ' ' + 'ui -state-disabled' )
451
451
. removeAttr ( 'aria-disabled' )
452
452
. unbind ( ".selectmenu" ) ;
453
453
@@ -652,7 +652,7 @@ $.widget("ui.selectmenu", {
652
652
return false ;
653
653
}
654
654
655
- if ( this . _optionLis . eq ( newIndex ) . hasClass ( this . namespace + ' -state-disabled' ) ) {
655
+ if ( this . _optionLis . eq ( newIndex ) . hasClass ( 'ui -state-disabled' ) ) {
656
656
// if option at newIndex is disabled, call _moveFocus, incrementing amt by one
657
657
( amt > 0 ) ? ++ amt : -- amt ;
658
658
this . _moveSelection ( amt , newIndex ) ;
@@ -686,7 +686,7 @@ $.widget("ui.selectmenu", {
686
686
687
687
this . _focusedOptionLi ( ) . find ( 'a:eq(0)' ) . attr ( 'id' , '' ) ;
688
688
689
- if ( this . _optionLis . eq ( newIndex ) . hasClass ( this . namespace + ' -state-disabled' ) ) {
689
+ if ( this . _optionLis . eq ( newIndex ) . hasClass ( 'ui -state-disabled' ) ) {
690
690
// if option at newIndex is disabled, call _moveFocus, incrementing amt by one
691
691
( amt > 0 ) ? ++ amt : -- amt ;
692
692
this . _moveFocus ( amt , newIndex ) ;
@@ -710,7 +710,7 @@ $.widget("ui.selectmenu", {
710
710
if ( value ) this . close ( ) ;
711
711
this . element
712
712
. add ( this . newelement )
713
- . add ( this . list ) [ value ? 'addClass' : 'removeClass' ] ( 'ui-selectmenu-disabled ' + this . namespace + ' -state-disabled' )
713
+ . add ( this . list ) [ value ? 'addClass' : 'removeClass' ] ( 'ui-selectmenu-disabled ' + 'ui -state-disabled' )
714
714
. attr ( "aria-disabled" , value ) ;
715
715
}
716
716
} ,
@@ -742,14 +742,14 @@ $.widget("ui.selectmenu", {
742
742
} ,
743
743
744
744
_disabled : function ( elem ) {
745
- return $ ( elem ) . hasClass ( this . namespace + ' -state-disabled' ) ;
745
+ return $ ( elem ) . hasClass ( 'ui -state-disabled' ) ;
746
746
} ,
747
747
748
748
_toggleOption : function ( index , flag ) {
749
749
var optionElem = this . _optionLis . eq ( index ) ;
750
750
if ( optionElem ) {
751
751
optionElem
752
- . toggleClass ( this . namespace + ' -state-disabled', flag )
752
+ . toggleClass ( 'ui -state-disabled', flag )
753
753
. find ( "a" ) . attr ( "aria-disabled" , ! flag ) ;
754
754
if ( flag ) {
755
755
this . element . find ( "option" ) . eq ( index ) . attr ( "disabled" , "disabled" ) ;
@@ -764,7 +764,7 @@ $.widget("ui.selectmenu", {
764
764
var optGroupElem = this . list . find ( 'li.ui-selectmenu-group-' + index ) ;
765
765
if ( optGroupElem ) {
766
766
optGroupElem
767
- . toggleClass ( this . namespace + ' -state-disabled', flag )
767
+ . toggleClass ( 'ui -state-disabled', flag )
768
768
. attr ( "aria-disabled" , ! flag ) ;
769
769
if ( flag ) {
770
770
this . element . find ( "optgroup" ) . eq ( index ) . attr ( "disabled" , "disabled" ) ;
0 commit comments