Skip to content
Permalink
Browse files

Slider demo: Don't change default values.

Fixes #5131 - Slider demos need options reset before loading next demo.
  • Loading branch information
scottgonzalez committed Feb 5, 2010
1 parent ee2c8c0 commit 0b976c4616bfe9c5a4fb976b338a226245cde835
Showing with 9 additions and 11 deletions.
  1. +9 −11 demos/slider/multiple-vertical.html
@@ -17,25 +17,23 @@
</style>
<script type="text/javascript">
$(function() {
// change defaults for range, animate and orientation
$.extend($.ui.slider.prototype.options, {
range: "min",
animate: true,
orientation: "vertical"
});
// setup master volume
$("#master").slider({
value: 60,
orientation: "horizontal"
orientation: "horizontal",
range: "min",
animate: true
});
// setup graphic EQ
$("#eq > span").each(function() {
// read initial values from markup and remove that
var value = parseInt($(this).text());
$(this).empty();
$(this).slider({
value: value
})
$(this).empty().slider({
value: value,
range: "min",
animate: true,
orientation: "vertical"
});
});
});
</script>

0 comments on commit 0b976c4

Please sign in to comment.
You can’t perform that action at this time.