diff options
author | N0YB <Al_Stu@Frontier.com> | 2014-02-17 09:52:43 -0800 |
---|---|---|
committer | N0YB <Al_Stu@Frontier.com> | 2014-02-17 09:52:43 -0800 |
commit | fe672816e24f91fd0aa183d2606f1f53aa178f74 (patch) | |
tree | c0a067a356a12cb7bdf6a76853d85aae0b27f730 /usr | |
parent | 838e1f6342b42c52e21d11942e35561c25194c1d (diff) | |
download | pfsense-fe672816e24f91fd0aa183d2606f1f53aa178f74.zip pfsense-fe672816e24f91fd0aa183d2606f1f53aa178f74.tar.gz |
XHTML Compliance
RRD Graphs Update
Use CDATA section instead of clunky decode hex value for ampersand in script.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/status_rrd_graph.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph.php b/usr/local/www/status_rrd_graph.php index f00ca8a..9214c48 100755 --- a/usr/local/www/status_rrd_graph.php +++ b/usr/local/www/status_rrd_graph.php @@ -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> |