mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
XHTML Compliance
RRD Graphs Update Use CDATA section instead of clunky decode hex value for ampersand in script.
This commit is contained in:
parent
838e1f6342
commit
fe672816e2
@ -649,9 +649,9 @@ function get_dates($curperiod, $graph) {
|
||||
<tr>
|
||||
<td colspan="2" class="list">
|
||||
<script type="text/javascript">
|
||||
// <![CDATA[
|
||||
function update_graph_images() {
|
||||
//alert('updating');
|
||||
var amp = decodeURIComponent("%26");
|
||||
var randomid = Math.floor(Math.random()*11);
|
||||
<?php
|
||||
foreach($graphs as $graph) {
|
||||
@ -714,13 +714,14 @@ function get_dates($curperiod, $graph) {
|
||||
$id = preg_replace('/\./', '_', $id);
|
||||
|
||||
echo "\n";
|
||||
echo "\t\tjQuery('#{$id}').attr('src','status_rrd_graph_img.php?start={$start}' + amp + 'graph={$graph}' + amp + 'database={$curdatabase}' + amp + 'style={$curstyle}' + amp + 'tmp=' + randomid);\n";
|
||||
echo "\t\tjQuery('#{$id}').attr('src','status_rrd_graph_img.php?start={$start}&graph={$graph}&database={$curdatabase}&style={$curstyle}&tmp=' + randomid);\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
window.setTimeout('update_graph_images()', 355000);
|
||||
}
|
||||
window.setTimeout('update_graph_images()', 355000);
|
||||
// ]]>
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user