summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-16 15:52:49 +0545
committerGitHub <noreply@github.com>2017-02-16 15:52:49 +0545
commita597e44f0d0ec28f7d5ef0bf39890c4ab86d1a70 (patch)
tree60c20dacef1f5175128ff31c780685b9055d8ae8 /src/usr/local/www
parentf25c08c95b76b5eb21690bea8cc5dd70cd3ab970 (diff)
downloadpfsense-a597e44f0d0ec28f7d5ef0bf39890c4ab86d1a70.zip
pfsense-a597e44f0d0ec28f7d5ef0bf39890c4ab86d1a70.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.php6
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 8ad0b18..ce0a2c5 100644
--- a/src/usr/local/www/widgets/widgets/system_information.widget.php
+++ b/src/usr/local/www/widgets/widgets/system_information.widget.php
@@ -439,6 +439,8 @@ function systemStatusGetUpdateStatus() {
}
});
}
+
+setTimeout('systemStatusGetUpdateStatus()', 4000);
<?php endif; ?>
function updateMeters() {
@@ -457,17 +459,13 @@ function updateMeters() {
}
-<?php if (!isset($config['system']['firmware']['disablecheck'])): ?>
events.push(function(){
$("#showallsysinfoitems").click(function() {
$("[id^=show]").each(function() {
$(this).prop("checked", true);
});
});
-
- setTimeout('systemStatusGetUpdateStatus()', 4000);
});
-<?php endif; ?>
var update_interval = "<?=$widgetperiod?>";
OpenPOWER on IntegriCloud