fix enhanced (multi-)select boxes in old eTemplate where broken and displayed only as regular select-boxes

This commit is contained in:
Ralf Becker 2016-08-19 16:45:54 +02:00
parent 281fed9669
commit ce9ba4e2bc

View File

@ -214,7 +214,7 @@ class Html
if($enhanced) {
Framework::includeJS('/api/js/jquery/chosen/chosen.jquery.js');
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;
}