Merge branch 'ent-13611-no-podemos-configurar-ciertos-intervalos-personalizados-en-widget-netflow' into 'develop'

Ent 13611 no podemos configurar ciertos intervalos personalizados en widget netflow

See merge request artica/pandorafms!7321
This commit is contained in:
Diego Muñoz-Reja 2024-05-03 08:11:34 +00:00
commit cc4fd9a0c6
1 changed files with 0 additions and 23 deletions

View File

@ -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();