Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4433 from MauriceG/patch-111

Slider: Just create an ID for the label if it lacks
  • Loading branch information...
commit 268ece6ac87f95107b010d22b7439f3901dd554c 1 parent 34c4811
Jason Scott jasondscott authored Jason Scott committed
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/jquery.mobile.forms.slider.js
6 js/jquery.mobile.forms.slider.js
View
@@ -37,9 +37,11 @@ $.widget( "mobile.slider", $.mobile.widget, {
controlID = control.attr( "id" ),
- labelID = controlID + "-label",
+ $label = $( "[for='" + controlID + "']" ),
- label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
+ labelID = $label.attr( "id" ) || controlID + "-label",
+
+ label = $label.attr( "id", labelID ),
val = function() {
return cType == "input" ? parseFloat( control.val() ) : control[0].selectedIndex;
Please sign in to comment.
Something went wrong with that request. Please try again.