Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Slider: wrap input, slider, and label in a div for styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Schmitz committed Dec 21, 2012
1 parent b022971 commit 89238c2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/widgets/forms/slider.js
Expand Up @@ -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
Expand Down

0 comments on commit 89238c2

Please sign in to comment.