some newlines are needed
This commit is contained in:
@@ -2736,13 +2736,14 @@ function PMA_getTitleForTarget($target) {
|
|||||||
*/
|
*/
|
||||||
function PMA_js_mootools_domready($code, $print=true)
|
function PMA_js_mootools_domready($code, $print=true)
|
||||||
{
|
{
|
||||||
|
// these generated newlines are needed
|
||||||
$out = '';
|
$out = '';
|
||||||
$out .= '<script type="text/javascript">';
|
$out .= '<script type="text/javascript">';
|
||||||
$out .= '// <![CDATA[';
|
$out .= "\n" . '// <![CDATA[' . "\n";
|
||||||
$out .= 'window.addEvent(\'domready\',function() {';
|
$out .= 'window.addEvent(\'domready\',function() {';
|
||||||
$out .= $code;
|
$out .= $code;
|
||||||
$out .= '});';
|
$out .= '});';
|
||||||
$out .= '// ]]>';
|
$out .= "\n" . '// ]]>' . "\n";
|
||||||
$out .= '</script>';
|
$out .= '</script>';
|
||||||
|
|
||||||
if ($print)
|
if ($print)
|
||||||
@@ -2753,9 +2754,12 @@ function PMA_js_mootools_domready($code, $print=true)
|
|||||||
|
|
||||||
function PMA_js($code, $print=true)
|
function PMA_js($code, $print=true)
|
||||||
{
|
{
|
||||||
|
// these generated newlines are needed
|
||||||
$out = '';
|
$out = '';
|
||||||
$out .= '<script type="text/javascript">'."\n";
|
$out .= '<script type="text/javascript">'."\n";
|
||||||
|
$out .= "\n" . '// <![CDATA[' . "\n";
|
||||||
$out .= $code;
|
$out .= $code;
|
||||||
|
$out .= "\n" . '// ]]>' . "\n";
|
||||||
$out .= '</script>'."\n";
|
$out .= '</script>'."\n";
|
||||||
|
|
||||||
if ($print)
|
if ($print)
|
||||||
|
Reference in New Issue
Block a user