Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sliders: just create an ID for the label if it lacks Rev. 2

  • Loading branch information...
commit 919d02096984d2e9c09a919446c1987c8e8085e6 1 parent 658bc45
@MauriceG authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 js/jquery.mobile.forms.slider.js
View
6 js/jquery.mobile.forms.slider.js
@@ -38,7 +38,11 @@ $.widget( "mobile.slider", $.mobile.widget, {
labelID = controlID + "-label",
- label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
+ $label = $( "[for='"+ controlID +"']" ),
+
+ 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.