Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.4
-
Fix Version/s: 1.8.4
-
Component/s: ZendX_JQuery
-
Labels:None
Description
See also ZF-5810: View helper is creating incorrect parameters.
In the Callback function assigned to the slider's change event:
function zfjSliderUpdateagerange(e, ui) {
$("#hidden_field").attr("value", $("#slider").slider("value", 0));
}
This resets the sldiers value to zero – rather than getting it to pass to the hidden field as is intended.
What's needed is this:
function zfjSliderUpdateagerange(e, ui) {
$("#hidden_field").attr("value", $("#slider").slider("value"));
}
Slider.php r11941 line 81 – eliminate the %d (but there's obviously some (s)printf action going on somewhere which might mean it will be missed...
Confirmed. The API of the slider changed from jQuery UI 1.5 to 1.6, which is madness. I have to find a workaround, which is working for both versions.