diff options
Diffstat (limited to 'src/usr/local/www/widgets/widgets/openvpn.widget.php')
-rw-r--r-- | src/usr/local/www/widgets/widgets/openvpn.widget.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php index bc7ddd2..35a7865 100644 --- a/src/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php @@ -384,11 +384,7 @@ $widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period } events.push(function(){ - $("#showallovpns").click(function() { - $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { - $(this).prop("checked", true); - }); - }); + set_widget_checkbox_events("#widget-<?=$widgetname?>_panel-footer [id^=show]", "showallovpns"); // Start polling for updates some small random number of seconds from now (so that all the widgets don't // hit the server at exactly the same time) |