Zend Framework

Slider View Helper forces slider back to zero.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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...

Issue Links

Activity

Hide
Benjamin Eberlei added a comment -

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.

Show
Benjamin Eberlei added a comment - 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.
Hide
Benjamin Eberlei added a comment -

Using UI 1.5.3, should "fix" the issue for now

Show
Benjamin Eberlei added a comment - Using UI 1.5.3, should "fix" the issue for now
Hide
Yanick Rochon added a comment -

Actually, it does not help. The problem is described in this issue : http://framework.zend.com/issues/browse/ZF-6048

Show
Yanick Rochon added a comment - Actually, it does not help. The problem is described in this issue : http://framework.zend.com/issues/browse/ZF-6048
Hide
Benjamin Eberlei added a comment -

Bug is fixed in trunk and merged back into 1.8 release branch.

Use:

$view->jQuery()->setUiVersion("1.7.2");
$view->jQuery()->setUiVersion("1.5.3");

to decide which javascript generation mode should be enabled for the request. The Slider then generates the correct Javascript depending on your library version.

Show
Benjamin Eberlei added a comment - Bug is fixed in trunk and merged back into 1.8 release branch. Use:
$view->jQuery()->setUiVersion("1.7.2");
$view->jQuery()->setUiVersion("1.5.3");
to decide which javascript generation mode should be enabled for the request. The Slider then generates the correct Javascript depending on your library version.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: