Permalink
Browse files

Slider: wrap input, slider, and label in a div for styling

1 parent b022971 commit 89238c213521fc9c05baeef25cab2db1a7c568e2 Alexander Schmitz committed Dec 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/widgets/forms/slider.js
@@ -122,9 +122,8 @@ $.widget( "mobile.slider", $.mobile.widget, {
// wrap the slider in a div for styling purposes
if ( !this.isToggleSwitch && !isRangeslider ) {
- var wrapper = this.options.mini ? "<div class='ui-slider ui-mini'>" : "<div class='ui-slider'>";
-
- control.wrap( wrapper );
+ wrapper = this.options.mini ? "<div class='ui-slider ui-mini'\>" : "<div class='ui-slider'\>";
+ control.add($label).wrapAll( wrapper );
}
// monitor the input for updated values

0 comments on commit 89238c2

Please sign in to comment.