Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Slider: actually include disabled changes mentioned previous commit

  • Loading branch information...
commit c67a60829cb0d95d6de3e2f52400cab0abadf5eb 1 parent 125f95d
Alexander Schmitz authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 js/widgets/forms/slider.js
View
9 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 );
}
Please sign in to comment.
Something went wrong with that request. Please try again.