r2348 - #4385 - fixed a bug in the test page: values were being displayed even if they didn't mee...
Author: rdworth
Date: Sat Mar 21 15:14:34 2009
New Revision: 2348
Modified:
trunk/tests/visual/slider/slider_ticket_4385.html
Log:
#4385 - fixed a bug in the test page: values were being displayed even if
they didn't meet minrange
Modified: trunk/tests/visual/slider/slider_ticket_4385.html
==============================================================================
--- trunk/tests/visual/slider/slider_ticket_4385.html (original)
+++ trunk/tests/visual/slider/slider_ticket_4385.html Sat Mar 21 15:14:34
2009
@@ -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));