diff --git a/pandora_console/operation/netflow/nf_live_view.php b/pandora_console/operation/netflow/nf_live_view.php index a60abc178a..03c476d25a 100644 --- a/pandora_console/operation/netflow/nf_live_view.php +++ b/pandora_console/operation/netflow/nf_live_view.php @@ -93,6 +93,7 @@ $filter['ip_src'] = get_parameter('ip_src', ''); $filter['dst_port'] = get_parameter('dst_port', ''); $filter['src_port'] = get_parameter('src_port', ''); $filter['advanced_filter'] = get_parameter('advanced_filter', ''); +$filter['router_ip'] = get_parameter('router_ip'); $filter['netflow_monitoring'] = (bool) get_parameter('netflow_monitoring'); $filter['netflow_monitoring_interval'] = (int) get_parameter('netflow_monitoring_interval', 300); $filter['traffic_max'] = get_parameter('traffic_max', 0); @@ -385,7 +386,7 @@ $radio_buttons .= __('No').'  '.html_print_radio_button( $advanced_toggle .= ''.__('IP address resolution').''.ui_print_help_tip(__('Resolve the IP addresses to get their hostnames.'), true).''; $advanced_toggle .= ''.$radio_buttons.''; -$advanced_toggle .= ''.__('Source ip').''; +$advanced_toggle .= ''.__('Netflow Source ip').''; $advanced_toggle .= ''.html_print_input_text('router_ip', $filter['router_ip'], false, 40, 80, true).''; $advanced_toggle .= ''; @@ -891,8 +892,6 @@ ui_include_time_picker(); $(document).ready( function() { displayMonitoringFilter(); - // Update visibility of controls. - nf_view_click_period(); // Hide update filter button if ($("#filter_id").val() == 0) { $("#submit-update_button").hide(); @@ -928,11 +927,4 @@ ui_include_time_picker(); $("#text-date, #text-date_lower").datepicker({dateFormat: ""}); $.datepicker.regional[""]; - - function nf_view_click_period() { - var is_period = document.getElementById('checkbox-is_period').checked; - - document.getElementById('period_container').style.display = !is_period ? 'none' : 'flex'; - document.getElementById('end_date_container').style.display = is_period ? 'none' : 'flex'; - }