Skip to content
Snippets Groups Projects
Commit 0f41c5ff authored by Ghislain Loas's avatar Ghislain Loas
Browse files

sandbox plug sumo select

parent 32ecc0c0
Branches
Tags
6 merge requests!2334Master,!2102#57574 : correction orthographe des jours de la semaine,!2068Dev#57305 story status sandbox improve search page,!2064Dev#57305 story status sandbox improve search page,!2063Sandbox improve search page,!1950[WIP] Sandbox improve search page
......@@ -822,7 +822,7 @@ class Class_ScriptLoader {
public function addSol() {
return $this
->addOPACPluginScript('jQuery-MultiSelect-master/jquery.multiselect.js')
->addOPACPluginStyleSheet('jQuery-MultiSelect-master/jquery.multiselect.css');
->addOPACPluginScript('jquery.sumoselect-master/jquery.sumoselect.js')
->addOPACPluginStyleSheet('jquery.sumoselect-master/sumoselect.css');
}
}
......@@ -21,19 +21,19 @@
class ZendAfi_View_Helper_FormMultiSelect extends Zend_View_Helper_FormSelect {
public function formMultiSelectSelect($name, $value = null, $attribs = null,
public function formMultiSelect($name, $value = null, $attribs = null,
$options = null, $listsep = "<br />\n") {
$html = parent::formSelect($name, $value, $attribs, $options, $listsep);
/* $info = $this->_getInfo($name, $value, $attribs, $options, $listsep); */
/* extract($info); // name, id, value, attribs, options, listsep, disable */
$info = $this->_getInfo($name, $value, $attribs, $options, $listsep);
extract($info); // name, id, value, attribs, options, listsep, disable
/* $js = sprintf('$(\'#%s\').multiselect({search : true, showCheckbox : false});', */
/* $id); */
$js = sprintf('$(\'#%s\').SumoSelect({search : true, showCheckbox : false});',
$id);
/* Class_ScriptLoader::getInstance() */
/* ->addSol() */
/* ->addJQueryReady($js); */
Class_ScriptLoader::getInstance()
->addSol()
->addJQueryReady($js);
return $html;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment