aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/slider
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-03-21 22:14:34 +0000
committerRichard Worth <rdworth@gmail.com>2009-03-21 22:14:34 +0000
commit71dbad6bc66e213a29feb115c58f3aa7f376aec6 (patch)
tree23e83ae071bf8b73a7275b505fda8d7c9359172b /tests/visual/slider
parent18a418d21a0da67baebee6d544f5292d5f109534 (diff)
downloadjquery-ui-71dbad6bc66e213a29feb115c58f3aa7f376aec6.tar.gz
jquery-ui-71dbad6bc66e213a29feb115c58f3aa7f376aec6.zip
#4385 - fixed a bug in the test page: values were being displayed even if they didn't meet minrange
Diffstat (limited to 'tests/visual/slider')
-rw-r--r--tests/visual/slider/slider_ticket_4385.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/visual/slider/slider_ticket_4385.html b/tests/visual/slider/slider_ticket_4385.html
index 4689f7828..f2582d97d 100644
--- a/tests/visual/slider/slider_ticket_4385.html
+++ b/tests/visual/slider/slider_ticket_4385.html
@@ -15,8 +15,9 @@
max: 500,
values: [75, 300],
slide: function(event, ui) {
- $("#rangevalue").text(ui.values[0] + ' - ' + ui.values[1]);
- return ((ui.values[1] - ui.values[0]) > 50);
+ var minMet = ((ui.values[1] - ui.values[0]) > 50);
+ minMet && $("#rangevalue").text(ui.values[0] + ' - ' + ui.values[1]);
+ return minMet;
}
});
$("#rangevalue").text($("#slider").slider("values", 0) + ' - ' + $("#slider").slider("values", 1));