Update of /cvsroot/mantisbt/mantisbt/core
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2648/core
Modified Files:
collapse_api.php filter_api.php html_api.php
Log Message:
Enforce use_javascript, add html comment tags around javascript, onClick should
be onclick.
Index: html_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v
retrieving revision 1.160
retrieving revision 1.161
diff -u -d -r1.160 -r1.161
--- html_api.php 22 Apr 2005 10:31:03 -0000 1.160
+++ html_api.php 22 Apr 2005 22:06:07 -0000 1.161
@@ -210,9 +210,9 @@
echo "\t", '<link rel="stylesheet" type="text/css" href="',
$t_css_url, '" />', "\n";
# fix for NS 4.x css
- echo "\t", '<script type="text/javascript"
language="JavaScript">', "\n";
+ echo "\t", '<script type="text/javascript"
language="JavaScript"><!--', "\n";
echo "\t\t", 'if(document.layers)
{document.write("<style>td{padding:0px;}</style>")}', "\n";
- echo "\t", '</script>', "\n";
+ echo "\t", '--></script>', "\n";
}
# --------------------
Index: collapse_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/collapse_api.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- collapse_api.php 12 Feb 2005 20:01:10 -0000 1.3
+++ collapse_api.php 22 Apr 2005 22:06:07 -0000 1.4
@@ -87,7 +87,7 @@
$t_alt = '+';
}
- echo "<a href=\"\" onClick=\"ToggleDiv( '$p_name',
g_div_$p_name ); return false;\"
+ echo "<a href=\"\" onclick=\"ToggleDiv( '$p_name',
g_div_$p_name ); return false;\"
><img border=\"0\" src=\"images/$t_icon\"
alt=\"$t_alt\" /></a> ";
}
@@ -108,9 +108,9 @@
$g_open_collapse_section = false;
if ( ON == config_get( 'use_javascript' ) ) {
- echo '<script type="text/JavaScript">';
+ echo '<script type="text/JavaScript"><!--';
echo ' SetDiv( "', $p_name, '", g_div_', $p_name, '
);';
- echo '</script>';
+ echo '--></script>';
ob_end_flush();
} else {
Index: filter_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/filter_api.php,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -d -r1.101 -r1.102
--- filter_api.php 22 Apr 2005 21:26:21 -0000 1.101
+++ filter_api.php 22 Apr 2005 22:06:07 -0000 1.102
@@ -2693,6 +2693,7 @@
?>
<script language="Javascript">
+ <!--
function <?php echo $t_js_toggle_func . "_start" ; ?>(disable) {
document.filters.custom_field_<?php echo $p_field_id ;
?>_start_year.disabled = disable ;
document.filters.custom_field_<?php echo $p_field_id ;
?>_start_month.disabled = disable ;
@@ -2722,6 +2723,7 @@
break ;
}
}
+ -->
</script>
<?php
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
|