summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-02-26 12:29:33 +0545
committerRenato Botelho <renato@netgate.com>2017-03-08 15:36:14 -0300
commit31c0fa8bbdb7047df17063a66c0132ba3ecbafec (patch)
tree1db4cf8097b4ee0c3e1739d27a5b99c417ffeb40
parentf070cc7afcf110f66fc764fdd21350e04b220f80 (diff)
downloadpfsense-31c0fa8bbdb7047df17063a66c0132ba3ecbafec.zip
pfsense-31c0fa8bbdb7047df17063a66c0132ba3ecbafec.tar.gz
Fix #7317 Widget Filter All button
(cherry picked from commit 7067e174c27a1fe9b23d13806f1e52ce9bc2aaee)
-rw-r--r--src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/interface_statistics.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/interfaces.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/openvpn.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/services_status.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/smart_status.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/system_information.widget.php2
-rw-r--r--src/usr/local/www/widgets/widgets/wake_on_lan.widget.php2
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 27ee09d..adfec2f 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 00121a0..5cc0503 100644
--- a/src/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/src/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -205,7 +205,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);
});
});
OpenPOWER on IntegriCloud