From ec77ac4e859e9adc10f1c739bfb286164c5572ff Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Mon, 29 Apr 2024 16:58:52 +0200 Subject: [PATCH] 13611-Fix interval in Netflow widget --- .../include/lib/Dashboard/Widgets/netflow.php | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/pandora_console/include/lib/Dashboard/Widgets/netflow.php b/pandora_console/include/lib/Dashboard/Widgets/netflow.php index 8d520f8604..c2780abdcc 100644 --- a/pandora_console/include/lib/Dashboard/Widgets/netflow.php +++ b/pandora_console/include/lib/Dashboard/Widgets/netflow.php @@ -389,29 +389,6 @@ class Netflow extends Widget { return ' $(document).ready(function(){ - //Limit 1 week - $("#period_select option").each(function(key, element){ - if(element.value > 604800){ - $(element).remove(); - } - }) - $("#period_manual option").each(function(key, element){ - if(element.value > 604800){ - $(element).remove(); - } - }); - $("#period_manual input").on("change", function(e){ - if($("#hidden-period").val() > 604800) { - $(this).val(1); - $("#hidden-period").val(604800); - $("#period_manual select option").removeAttr("selected"); - setTimeout(() => { - $("#period_default select option[value=\'604800\']").attr("selected", "selected"); - $("#period_manual select option[value=\'604800\']").attr("selected", "selected"); - $("#period_manual select").val(604800); - }, 500); - } - }); if($("#chart_type").val() === "usage_map") { $("#data_to_show").show(); $("#aggregated").hide();