Use same script tag, use CDATA for scripts (RFE #995065).

This commit is contained in:
Michal Čihař
2005-12-04 23:14:41 +00:00
parent d7c81e9c44
commit 75a16f45f8
15 changed files with 55 additions and 44 deletions

View File

@@ -1161,8 +1161,8 @@ switch ($action) {
echo htmlspecialchars(get_cfg_string($configuration));
echo '</textarea></form>' . "\n";
?>
<script language="javascript" type="text/javascript">
<!--
<script type="text/javascript" language="javascript">
//<![CDATA[
var bodyWidth=null; var bodyHeight=null;
if (document.getElementById('textconfig')) {
bodyWidth = self.innerWidth;
@@ -1179,7 +1179,7 @@ switch ($action) {
document.getElementById('textconfig').style.width=(bodyWidth-50) + 'px';
document.getElementById('textconfig').style.height=(bodyHeight-100) + 'px';
}
//-->
//]]>
</script>
<?php
break;