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 b44961ba4c
commit a8268adfb5

View File

@ -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;
} }