Skip to content
Permalink
Browse files

#4385 - fixed a bug in the test page: values were being displayed eve…

…n if they didn't meet minrange
  • Loading branch information
rdworth committed Mar 21, 2009
1 parent 18a418d commit 71dbad6bc66e213a29feb115c58f3aa7f376aec6
Showing with 3 additions and 2 deletions.
  1. +3 −2 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));

0 comments on commit 71dbad6

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