Merge branch 'ent-12417-grafica-de-umbrales-numericos-en-modulos-alfanumericos' into 'develop'

Ent 12417 grafica de umbrales numericos en modulos alfanumericos

See merge request artica/pandorafms!6646
This commit is contained in:
Rafael Ameijeiras 2023-11-27 10:35:53 +00:00
commit 6f4d519b32
1 changed files with 5 additions and 1 deletions

View File

@ -2000,7 +2000,11 @@ ui_require_jquery_file('json');
$('#' + thisLabel).prop('checked', true);
$('#' + thisLabel).siblings().prop('checked', false);
if ($('#radius-percentage_warning').prop('checked') === true || $('#radius-percentage_critical').prop('checked') === true) {
var type_selected = $("#id_module_type").val();
var type_names = jQuery.parseJSON(Base64.decode($('#hidden-type_names').val()));
var type_name_selected = type_names[type_selected];
if ($('#radius-percentage_warning').prop('checked') === true || $('#radius-percentage_critical').prop('checked') === true || type_name_selected == 'generic_data_string') {
$("#svg_dinamic").hide();
} else {
paint_graph_values();