Issues

ZF-5810: ZendX_JQuery_View_Helper_Slider - default parameter of startValue is set although this is not a parameter in the jQuery docs

Description

ZendX_JQuery_View_Helper_Slider forces a startValue parameter to be passed to a new slider:

if(!isset($params['handles'][0]['start'])) { if(is_numeric($value)) { $params['startValue'] = $value; } elseif(!isset($params['startValue'])) { $params['startValue'] = 0; } }

In the jQuery docs (http://docs.jquery.com/UI/Slider/slider) no such parameter is listed.

Comments

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.