forked from extern/egroupware
fix enhanced (multi-)select boxes in old eTemplate where broken and displayed only as regular select-boxes
This commit is contained in:
parent
281fed9669
commit
ce9ba4e2bc
@ -214,7 +214,7 @@ class Html
|
|||||||
if($enhanced) {
|
if($enhanced) {
|
||||||
Framework::includeJS('/api/js/jquery/chosen/chosen.jquery.js');
|
Framework::includeJS('/api/js/jquery/chosen/chosen.jquery.js');
|
||||||
Framework::includeCSS('/api/js/jquery/chosen/chosen.css',null,false);
|
Framework::includeCSS('/api/js/jquery/chosen/chosen.css',null,false);
|
||||||
$out .= "<script>var lab = egw_LAB || \$LAB; lab.wait(function() {\jQuery(function() {if(\jQuery().chosen) \jQuery('select[name=\"$name\"]').chosen({width: '100%'});});})</script>\n";
|
$out .= "<script>var lab = egw_LAB || \$LAB; lab.wait(function() {jQuery(function() {if(jQuery().chosen) jQuery('select[name=\"$name\"]').chosen({width: '100%'});});})</script>\n";
|
||||||
}
|
}
|
||||||
return $out;
|
return $out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user