diff options
author | Phil Davis <phil.davis@inf.org> | 2017-02-16 15:52:49 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-03-21 23:46:40 +0545 |
commit | 3548123957d8a63635d7b3bb0237700608c33d0e (patch) | |
tree | 72129004786f173b13671725e139e1e77f5645f3 /src/usr/local/www | |
parent | 0d40b2cb3402458335d4191a9f5a0e46f21871bf (diff) | |
download | pfsense-3548123957d8a63635d7b3bb0237700608c33d0e.zip pfsense-3548123957d8a63635d7b3bb0237700608c33d0e.tar.gz |
System Info Widget enable All button when disable firmware check is set
If system firmware disablecheck is set, then the click event for the filter "All" button is also not included in the JS, so the "All" button is not effective.
The setTimeout for systemStatusGetUpdateStatus() can be moved up just below where it is declared and inside the existing "if" that conditionally includes that function - no need for it to be inside events.push
Then the PHP condition around events.push can be removed, so that the "All" button will always be effective.
Diffstat (limited to 'src/usr/local/www')
-rw-r--r-- | src/usr/local/www/widgets/widgets/system_information.widget.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/widgets/widgets/system_information.widget.php b/src/usr/local/www/widgets/widgets/system_information.widget.php index bcfe449..10b8129 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -506,6 +506,8 @@ function systemStatusGetUpdateStatus() { } }); } + +setTimeout('systemStatusGetUpdateStatus()', 4000); <?php endif; ?> function updateMeters() { @@ -524,17 +526,13 @@ function updateMeters() { } -<?php if (!isset($config['system']['firmware']['disablecheck'])): ?> events.push(function(){ $("#showallsysinfoitems").click(function() { $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); - - setTimeout('systemStatusGetUpdateStatus()', 4000); }); -<?php endif; ?> var update_interval = "<?=$widgetperiod?>"; |