From a76ad27825e3f03106e9bc53fcbe8ee90eb4edcf Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Tue, 26 Mar 2019 16:51:09 +0100 Subject: [PATCH] minor fixes Former-commit-id: f885316b4f063daac744ca458fa3d41a16d5d81b --- .../include/javascript/functions_pandora_networkmap.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/javascript/functions_pandora_networkmap.js b/pandora_console/include/javascript/functions_pandora_networkmap.js index 596dc2e299..54a53bb5fb 100644 --- a/pandora_console/include/javascript/functions_pandora_networkmap.js +++ b/pandora_console/include/javascript/functions_pandora_networkmap.js @@ -2956,6 +2956,10 @@ function init_graph(parameter_object) { $(window).height() - $("#menu_tab_frame_view").height() - 20; // 20 of margin } + if (typeof parameter_object.font_size != "undefined") { + window.font_size = parameter_object.font_size; + } + window.refresh_period = 5 * 1000; //milliseconds if (typeof parameter_object.refresh_period != "undefined") { window.refresh_period = parameter_object.refresh_period; @@ -3968,8 +3972,8 @@ function draw_elements_graph() { var font_size = node_radius / 1.5; - if (self.font_size) { - font_size = self.font_size; + if (typeof window.font_size != "undefined") { + font_size = window.font_size; } node_temp