Correction des functions inutile et que ne marche pas + correction des sliders.

This commit is contained in:
Damien LASSERRE 2012-01-11 10:46:08 +00:00
parent 465269d60d
commit 048274b4da

View File

@ -21,7 +21,8 @@ $(document).ready(function(){
});
});
$( ".slider-range" ).slider({
var slider = $( ".slider-range" )
.slider({
range: true,
create: function(event, ui) {
var max = $("#"+$(this).attr('input')).attr('max');
@ -30,7 +31,7 @@ $(document).ready(function(){
$(this).slider( "option", "min", min );
$(this).slider( "option", "max", max );
},
values : [0, 100000000000000],
values : [0, 10000000000],
slide: function( event, ui ) {
var name = $(this).attr('input');
@ -42,22 +43,7 @@ $(document).ready(function(){
set(name, ui.values[ 0 ] + "," + ui.values[ 1 ]);
},
});
var dates = $( ".from, .to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 2,
onSelect: function( selectedDate ) {
var option = this.id == "from" ? "maxDate" : "minDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
selectedDate, instance.settings );
dates.not( this ).datepicker( "option", option, date );
}
});
$( ".datepicker" ).datepicker();
$( ".datepicker" ).datepicker( "option", "dateFormat", "yymmdd" );
$( "#accordion" ).accordion({