diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-08 08:58:15 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-08 08:58:40 -0400 |
commit | 112284e15581a31e34e67a283bc20fdd7f04132d (patch) | |
tree | dfb22ef9dc5cf41fb436418f2fa12c6a1a4d4dc7 /src/usr/local/www/status_rrd_graph.php | |
parent | 27e2bf9f85a087128dde6a31c5a5e1c9b247630d (diff) | |
download | pfsense-112284e15581a31e34e67a283bc20fdd7f04132d.zip pfsense-112284e15581a31e34e67a283bc20fdd7f04132d.tar.gz |
Fixed #5034
Diffstat (limited to 'src/usr/local/www/status_rrd_graph.php')
-rw-r--r-- | src/usr/local/www/status_rrd_graph.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/usr/local/www/status_rrd_graph.php b/src/usr/local/www/status_rrd_graph.php index c7b7eb1..da61f9b 100644 --- a/src/usr/local/www/status_rrd_graph.php +++ b/src/usr/local/www/status_rrd_graph.php @@ -485,6 +485,7 @@ function build_options() { return($optionslist); } + include("head.inc"); display_top_tabs(make_tabs()); @@ -494,12 +495,7 @@ if ($input_errors && count($input_errors)) require_once('classes/Form.class.php'); -$form = new Form(new Form_Button( - 'submit', - 'Go!' - )); - -$form->addClass('auto-submit'); +$form = new Form(false); $section = new Form_Section('Graph settings'); @@ -532,7 +528,6 @@ if($curcat == 'custom') $section->add($group); if($curcat == 'custom') { - $section->addInput(new Form_Input( 'cat', null, @@ -660,6 +655,7 @@ if($curcat == 'custom') { } ?> + <script type="text/javascript"> //<![CDATA[ function update_graph_images() { @@ -737,11 +733,13 @@ if($curcat == 'custom') { </script> <script> +//<![CDATA[ events.push(function(){ - $('.auto-submit').on('change', function(){ - $(this).submit(); + $('#option, #style, #period').on('change', function(){ + $(this).parents('form').submit(); }); }); +//]]> </script> <?php include("foot.inc");
\ No newline at end of file |