Permalink
Browse files

Suggestion for #3981 - use existing label-id if there, otherwise gene…

…rate ID from sliders ID
  • Loading branch information...
MauriceG committed Apr 16, 2012
1 parent 29465d7 commit 473ae28e79cd2f0be0ebec85e64ad557c4e3d97e
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.forms.slider.js
@@ -36,7 +36,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
controlID = control.attr( "id" ),
- labelID = controlID + "-label",
+ labelID = $( "[for='"+ controlID +"']" ).attr( "id" ) || controlID + "-label",
label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),

0 comments on commit 473ae28

Please sign in to comment.