diff options
Diffstat (limited to 'src/usr/local/www/widgets/widgets/interface_statistics.widget.php')
-rw-r--r-- | src/usr/local/www/widgets/widgets/interface_statistics.widget.php | 6 |
1 files changed, 1 insertions, 5 deletions
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 8cd03fc..1c87c5f 100644 --- a/src/usr/local/www/widgets/widgets/interface_statistics.widget.php +++ b/src/usr/local/www/widgets/widgets/interface_statistics.widget.php @@ -216,11 +216,7 @@ $widgetperiod = isset($config['widgets']['period']) ? $config['widgets']['period } events.push(function(){ - $("#showallinterfacesforstats").click(function() { - $("#widget-<?=$widgetname?>_panel-footer [id^=show]").each(function() { - $(this).prop("checked", true); - }); - }); + set_widget_checkbox_events("#widget-<?=$widgetname?>_panel-footer [id^=show]", "showallinterfacesforstats"); // 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) |