diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-18 09:07:54 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-18 09:09:04 -0500 |
commit | b5ff58cf70316019d9f2f830bcf1381099585ee3 (patch) | |
tree | 4243c4156b52a3848f7a337744de6b7bffada8be /src/usr/local/www/index.php | |
parent | 84d4df03c537c7d1d82fa1d8e6d49b7ccd9f2c36 (diff) | |
download | pfsense-b5ff58cf70316019d9f2f830bcf1381099585ee3.zip pfsense-b5ff58cf70316019d9f2f830bcf1381099585ee3.tar.gz |
Fixed #5653
Removed bogus code that forced system information to be first in the list
Added JS to always add system_information to col 1
Diffstat (limited to 'src/usr/local/www/index.php')
-rw-r--r-- | src/usr/local/www/index.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/usr/local/www/index.php b/src/usr/local/www/index.php index ba572d4..2813535 100644 --- a/src/usr/local/www/index.php +++ b/src/usr/local/www/index.php @@ -147,10 +147,6 @@ foreach (glob("/usr/local/www/widgets/widgets/*.widget.php") as $file) { $widgets[ $name ] = array('name' => $widgettitle, 'display' => 'none'); } -##insert the system information widget as first, so as to be displayed first -unset($widgets['system_information']); -$widgets = array_merge(array('system_information' => array('name' => 'System Information')), $widgets); - ##if no config entry found, initialize config entry if (!is_array($config['widgets'])) { $config['widgets'] = array(); @@ -443,7 +439,12 @@ function updateWidgets(newWidget) { }); if (typeof newWidget !== 'undefined') { + // The system_information widget is always added to column one. Others go in column two + if (newWidget == "system_information") { + sequence += newWidget + ':' + 'col1:open'; + } else { sequence += newWidget + ':' + 'col2:open'; + } } $('#widgetSequence').removeClass('hidden'); |