Widget:CJP4: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
stop: function(event, ui) { | stop: function(event, ui) { | ||
if (ui.values[0] < ui.values[1]) | if (ui.values[0] < ui.values[1]) | ||
{ | { | ||
var newZero = ui.values[0]; | |||
var newOne = ui.values[1]; | |||
console.log(newZero); | |||
console.log(newOne); | |||
$("input.pillSizeSlider[data-index=1]").val(newZero); | |||
$("input.pillSizeSlider[data-index=0]").val(newOne); | |||
} | |||
else if (ui.values[0] > ui.values[1]) | else if (ui.values[0] > ui.values[1]) | ||
{ | { | ||
Line 29: | Line 36: | ||
} | } | ||
else | else | ||
{ | { | ||
var newZero = ui.values[0]; | |||
var newOne = ui.values[1]; | |||
console.log(newZero); | |||
console.log(newOne); | |||
$("input.pillSizeSlider[data-index=1]").val(newZero); | |||
$("input.pillSizeSlider[data-index=0]").val(newOne); | |||
} | |||
} | } | ||
}); | }); |