Project

General

Profile

« Previous | Next » 

Revision 388189cf

Added by Steve Beaver almost 8 years ago

Hide dashboard update period control. No longer needed with central refresh system

(cherry picked from commit 5e024279579ec76486f7cff713eecdb83611ed37)

View differences:

src/usr/local/www/system.php
107 107
$pconfig['statusmonitoringsettingspanel'] = isset($config['system']['webgui']['statusmonitoringsettingspanel']);
108 108
$pconfig['webguihostnamemenu'] = $config['system']['webgui']['webguihostnamemenu'];
109 109
$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
110
$pconfig['dashboardperiod'] = isset($config['widgets']['period']) ? $config['widgets']['period']:"10";
110
//$pconfig['dashboardperiod'] = isset($config['widgets']['period']) ? $config['widgets']['period']:"10";
111 111
$pconfig['loginshowhost'] = isset($config['system']['webgui']['loginshowhost']);
112 112
$pconfig['requirestatefilter'] = isset($config['system']['webgui']['requirestatefilter']);
113 113

  
......
189 189

  
190 190
	do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors);
191 191

  
192
	if ($_POST['dashboardperiod']) {
193
		$config['widgets']['period'] = $_POST['dashboardperiod'];
194
	}
192
//	if ($_POST['dashboardperiod']) {
193
//		$config['widgets']['period'] = $_POST['dashboardperiod'];
194
//	}
195 195

  
196 196
	if ($_POST['webguicss']) {
197 197
		$config['system']['webgui']['webguicss'] = $_POST['webguicss'];
......
642 642
	'Show hostname on login banner',
643 643
	$pconfig['loginshowhost']
644 644
));
645

  
645
/*
646 646
$section->addInput(new Form_Input(
647 647
	'dashboardperiod',
648 648
	'Dashboard update period',
......
652 652
))->setHelp('Time in seconds between dashboard widget updates. Small values cause ' .
653 653
			'more frequent updates but increase the load on the web server. ' .
654 654
			'Minimum is 5 seconds, maximum 600 seconds');
655

  
655
*/
656 656
$form->add($section);
657 657

  
658 658
print $form;

Also available in: Unified diff