Permalink
Browse files

Slider: actually include disabled changes mentioned previous commit

  • Loading branch information...
Alexander Schmitz
Alexander Schmitz committed Dec 21, 2012
1 parent 125f95d commit c67a60829cb0d95d6de3e2f52400cab0abadf5eb
Showing with 7 additions and 2 deletions.
  1. +7 −2 js/widgets/forms/slider.js
@@ -79,6 +79,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
max: max,
min: min,
valuebg: valuebg,
isRangeslider: isRangeslider,
dragging: false,
beforeStart: null,
userModified: false,
@@ -491,13 +492,17 @@ $.widget( "mobile.slider", $.mobile.widget, {
enable: function() {
this.element.attr( "disabled", false );
this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false ).parent().removeClass( "ui-disabled" );
return this._setOption( "disabled", false );
},
disable: function() {
this.element.attr( "disabled", true );
this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
if( this.isRangeslider ) {
this.slider.attr( "aria-disabled", true ).parent().addClass( "ui-disabled" );
} else {
this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
}
return this._setOption( "disabled", true );
}

0 comments on commit c67a608

Please sign in to comment.