code cleanup; remove unneeded newlines in generated code; fix some XHTML errors

This commit is contained in:
Marc Delisle
2009-12-20 15:26:12 +00:00
parent 936472a758
commit 2e15e348ed
3 changed files with 211 additions and 203 deletions

View File

@@ -2733,11 +2733,13 @@ function PMA_getTitleForTarget($target) {
function PMA_js_mootools_domready($code, $print=true)
{
$out = '';
$out .= '<script type="text/javascript">'."\n";
$out .= 'window.addEvent(\'domready\',function() {'."\n";
$out .= '<script type="text/javascript">';
$out .= '// <![CDATA[';
$out .= 'window.addEvent(\'domready\',function() {';
$out .= $code;
$out .= '});'."\n";
$out .= '</script>'."\n";
$out .= '});';
$out .= '// ]]>';
$out .= '</script>';
if ($print)
echo $out;