aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-02-05 02:30:48 +0000
committerScott González <scott.gonzalez@gmail.com>2010-02-05 02:30:48 +0000
commit0b976c4616bfe9c5a4fb976b338a226245cde835 (patch)
treeb9ce9cb9a83ce30d70ed028c7c0b9b0037057797
parentee2c8c043996a6b0eed39ea635aee14c76adf016 (diff)
downloadjquery-ui-0b976c4616bfe9c5a4fb976b338a226245cde835.tar.gz
jquery-ui-0b976c4616bfe9c5a4fb976b338a226245cde835.zip
Slider demo: Don't change default values.
Fixes #5131 - Slider demos need options reset before loading next demo.
-rw-r--r--demos/slider/multiple-vertical.html20
1 files changed, 9 insertions, 11 deletions
diff --git a/demos/slider/multiple-vertical.html b/demos/slider/multiple-vertical.html
index 6e6a1e281..dc5de17fa 100644
--- a/demos/slider/multiple-vertical.html
+++ b/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>