Skip to content

Commit

Permalink
QA: Add Clear button as a 1 second refresh is hard to change
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Nov 27, 2024
1 parent af73c04 commit e183945
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions support.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,16 @@ function show_database_processes() {
applyFilter();
});

$('#clear').click(function() {
var strURL = 'support.php';
strURL += '?tab=processes&clear=1';
loadUrl({url: strURL});
});

$('#refresh').click(function() {
clearTimeout(myRefresh);
});

$('#refreshbtn').click(function() {
applyFilter();
});
Expand Down Expand Up @@ -323,6 +333,7 @@ function applyFilter() {
<td>
<span>
<input class='ui-button ui-corner-all ui-widget' type='button' id='refreshbtn' value='<?php print __esc('Refresh');?>' title='<?php print __esc('Refresh Values');?>'>
<input class='ui-button ui-corner-all ui-widget' type='button' id='clear' value='<?php print __esc('Clear');?>' title='<?php print __esc('Reset Refresh');?>'>
</span>
</td>
</tr>
Expand Down Expand Up @@ -521,6 +532,16 @@ function show_cacti_processes() {
applyFilter();
});

$('#clear').click(function() {
var strURL = 'support.php';
strURL += '?tab=background&clear=1';
loadUrl({url: strURL});
});

$('#refresh').click(function() {
clearTimeout(myRefresh);
});

$('#refreshbtn').click(function() {
applyFilter();
});
Expand Down Expand Up @@ -593,6 +614,7 @@ function applyFilter() {
<td>
<span>
<input class='ui-button ui-corner-all ui-widget' type='button' id='refreshbtn' value='<?php print __esc('Refresh');?>' title='<?php print __esc('Refresh Values');?>'>
<input class='ui-button ui-corner-all ui-widget' type='button' id='clear' value='<?php print __esc('Clear');?>' title='<?php print __esc('Reset Refresh');?>'>
</span>
</td>
</tr>
Expand Down

0 comments on commit e183945

Please sign in to comment.