2013-01-02 03:06:55 +01:00
|
|
|
|
var sliderOptions = {
|
2012-01-31 08:19:52 +01:00
|
|
|
|
min: 0,
|
|
|
|
|
max: 200,
|
|
|
|
|
value: 0,
|
|
|
|
|
step: 1,
|
|
|
|
|
create: function (event, ui) {
|
|
|
|
|
var startingValue = $(this).siblings('.slider-value').val();
|
|
|
|
|
$(this).siblings('.30-minute').text(startingValue * 30);
|
|
|
|
|
$(this).siblings('.60-minute').text(startingValue * 60);
|
|
|
|
|
},
|
|
|
|
|
slide: function (event, ui) {
|
|
|
|
|
$(this).siblings('.slider-value').val(ui.value);
|
|
|
|
|
$(this).siblings('.30-minute').text(ui.value * 30);
|
|
|
|
|
$(this).siblings('.60-minute').text(ui.value * 60);
|
2013-01-02 03:06:55 +01:00
|
|
|
|
},
|
|
|
|
|
change: function (event, ui) {
|
|
|
|
|
$(this).siblings('.slider-value').val(ui.value).trigger('change');
|
2012-01-31 08:19:52 +01:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2013-01-02 03:06:55 +01:00
|
|
|
|
$('.quality-selectee').livequery(function () {
|
|
|
|
|
$(this).button();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.slider').livequery(function () {
|
|
|
|
|
var localOptions = sliderOptions;
|
|
|
|
|
localOptions["value"] = $(this).siblings('.slider-value').val();
|
2012-01-31 08:19:52 +01:00
|
|
|
|
|
2013-01-02 03:06:55 +01:00
|
|
|
|
$(this).empty().slider(localOptions);
|
|
|
|
|
});
|