diff options
author | Phil Davis <phil.davis@inf.org> | 2017-02-26 12:29:33 +0545 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-08 15:34:28 -0300 |
commit | 7df63e98c8a272a35e914874620e0f03567b9fd2 (patch) | |
tree | 0df1d7aeb4e82784a3d2292aea08cc66b97b1221 /src/usr/local/www/widgets | |
parent | 25d8c2ce32596b634c9b7d5df6469acb09450fa0 (diff) | |
download | pfsense-7df63e98c8a272a35e914874620e0f03567b9fd2.zip pfsense-7df63e98c8a272a35e914874620e0f03567b9fd2.tar.gz |
Fix #7317 Widget Filter All button
(cherry picked from commit 7067e174c27a1fe9b23d13806f1e52ce9bc2aaee)
Diffstat (limited to 'src/usr/local/www/widgets')
8 files changed, 8 insertions, 8 deletions
diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php index d932a63..0c3aa7a 100644 --- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php +++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php @@ -311,7 +311,7 @@ function get_dyndns_service_text($dyndns_type) { } events.push(function(){ $("#showalldyndns").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/interface_statistics.widget.php b/src/usr/local/www/widgets/widgets/interface_statistics.widget.php index be27757..b5368fa 100644 --- a/src/usr/local/www/widgets/widgets/interface_statistics.widget.php +++ b/src/usr/local/www/widgets/widgets/interface_statistics.widget.php @@ -212,7 +212,7 @@ $widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period events.push(function(){ $("#showallinterfacesforstats").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/interfaces.widget.php b/src/usr/local/www/widgets/widgets/interfaces.widget.php index 4ca7f31..27cd803 100644 --- a/src/usr/local/www/widgets/widgets/interfaces.widget.php +++ b/src/usr/local/www/widgets/widgets/interfaces.widget.php @@ -209,7 +209,7 @@ endforeach; //<![CDATA[ events.push(function(){ $("#showallinterfaces").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php index 3a70041..5704822 100644 --- a/src/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php @@ -374,7 +374,7 @@ $widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period events.push(function(){ $("#showallovpns").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/services_status.widget.php b/src/usr/local/www/widgets/widgets/services_status.widget.php index e5c0347..4672b2e 100644 --- a/src/usr/local/www/widgets/widgets/services_status.widget.php +++ b/src/usr/local/www/widgets/widgets/services_status.widget.php @@ -158,7 +158,7 @@ if (count($services) > 0) { //<![CDATA[ events.push(function(){ $("#showallservices").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/smart_status.widget.php b/src/usr/local/www/widgets/widgets/smart_status.widget.php index e856987..49f1f42 100644 --- a/src/usr/local/www/widgets/widgets/smart_status.widget.php +++ b/src/usr/local/www/widgets/widgets/smart_status.widget.php @@ -183,7 +183,7 @@ if (count($devs) > 0) { //<![CDATA[ events.push(function(){ $("#showallsmartdrives").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); 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 9e0dd82..bcfe449 100644 --- a/src/usr/local/www/widgets/widgets/system_information.widget.php +++ b/src/usr/local/www/widgets/widgets/system_information.widget.php @@ -527,7 +527,7 @@ function updateMeters() { <?php if (!isset($config['system']['firmware']['disablecheck'])): ?> events.push(function(){ $("#showallsysinfoitems").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); diff --git a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php index bf8118d..b4d22de 100644 --- a/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php +++ b/src/usr/local/www/widgets/widgets/wake_on_lan.widget.php @@ -206,7 +206,7 @@ if (is_array($config['dhcpd'])) { //<![CDATA[ events.push(function(){ $("#showallwols").click(function() { - $("[id^=show]").each(function() { + $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { $(this).prop("checked", true); }); }); |