2010-03-12 03:18:34 +00:00
<!DOCTYPE html>
2009-03-21 19:55:29 +00:00
< html lang = "en" >
< head >
2010-03-12 03:18:34 +00:00
< meta charset = "UTF-8" / >
2009-03-21 21:59:05 +00:00
< title > Slider Visual Test : Slider ticket #4385< / title >
< link rel = "stylesheet" href = "../visual.css" type = "text/css" / >
2010-02-16 01:38:23 +00:00
< link rel = "stylesheet" href = "../../../themes/base/jquery.ui.all.css" type = "text/css" >
2010-02-16 02:39:57 +00:00
< script type = "text/javascript" src = "../../../jquery-1.4.2.js" > < / script >
2009-09-17 10:39:12 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.core.js" > < / script >
2009-12-16 22:20:18 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.widget.js" > < / script >
2010-01-01 12:43:36 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.mouse.js" > < / script >
2009-09-17 10:39:12 +00:00
< script type = "text/javascript" src = "../../../ui/jquery.ui.slider.js" > < / script >
2009-03-21 19:55:29 +00:00
< script type = "text/javascript" >
$(function() {
2009-03-21 21:59:05 +00:00
$("#slider").slider({
2009-03-21 19:55:29 +00:00
range: true,
min: 0,
max: 500,
values: [75, 300],
slide: function(event, ui) {
2009-03-21 22:14:34 +00:00
var minMet = ((ui.values[1] - ui.values[0]) > 50);
minMet & & $("#rangevalue").text(ui.values[0] + ' - ' + ui.values[1]);
return minMet;
2009-03-21 19:55:29 +00:00
}
});
2009-03-21 21:59:05 +00:00
$("#rangevalue").text($("#slider").slider("values", 0) + ' - ' + $("#slider").slider("values", 1));
2009-03-21 19:55:29 +00:00
});
< / script >
< / head >
< body >
2009-03-21 22:19:58 +00:00
< h1 class = "ui-widget-header" > < a href = "http://dev.jqueryui.com/ticket/4385" > #4385 - event slide callback returning false can lead to stuck range handles< / a > < / h1 >
2009-03-21 19:55:29 +00:00
< p >
2009-03-21 21:59:05 +00:00
< label for = "rangevalue" > Price range:< / label >
< span id = "rangevalue" > < / span >
2009-03-21 19:55:29 +00:00
< / p >
2009-03-21 21:59:05 +00:00
< div id = "slider" > < / div >
2009-03-21 19:55:29 +00:00
< / body >
< / html >