Revision 112284e1
Added by Stephen Beaver almost 10 years ago
src/usr/local/www/status_rrd_graph.php | ||
---|---|---|
485 | 485 |
|
486 | 486 |
return($optionslist); |
487 | 487 |
} |
488 |
|
|
488 | 489 |
include("head.inc"); |
489 | 490 |
|
490 | 491 |
display_top_tabs(make_tabs()); |
... | ... | |
494 | 495 |
|
495 | 496 |
require_once('classes/Form.class.php'); |
496 | 497 |
|
497 |
$form = new Form(new Form_Button( |
|
498 |
'submit', |
|
499 |
'Go!' |
|
500 |
)); |
|
501 |
|
|
502 |
$form->addClass('auto-submit'); |
|
498 |
$form = new Form(false); |
|
503 | 499 |
|
504 | 500 |
$section = new Form_Section('Graph settings'); |
505 | 501 |
|
... | ... | |
532 | 528 |
$section->add($group); |
533 | 529 |
|
534 | 530 |
if($curcat == 'custom') { |
535 |
|
|
536 | 531 |
$section->addInput(new Form_Input( |
537 | 532 |
'cat', |
538 | 533 |
null, |
... | ... | |
660 | 655 |
} |
661 | 656 |
|
662 | 657 |
?> |
658 |
|
|
663 | 659 |
<script type="text/javascript"> |
664 | 660 |
//<![CDATA[ |
665 | 661 |
function update_graph_images() { |
... | ... | |
737 | 733 |
</script> |
738 | 734 |
|
739 | 735 |
<script> |
736 |
//<![CDATA[ |
|
740 | 737 |
events.push(function(){ |
741 |
$('.auto-submit').on('change', function(){
|
|
742 |
$(this).submit(); |
|
738 |
$('#option, #style, #period').on('change', function(){
|
|
739 |
$(this).parents('form').submit();
|
|
743 | 740 |
}); |
744 | 741 |
}); |
742 |
//]]> |
|
745 | 743 |
</script> |
746 | 744 |
|
747 | 745 |
<?php include("foot.inc"); |
Also available in: Unified diff
Fixed #5034