From ce614178adbc7e33250a6dbb4e3c54b0aa0b7c0f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 6 Aug 2015 11:09:48 +0200 Subject: [PATCH] Fixed problems with icos in visual console --- .../reporting/visual_console_builder.editor.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandora_console/godmode/reporting/visual_console_builder.editor.js b/pandora_console/godmode/reporting/visual_console_builder.editor.js index 19e537b375..b853d1f2dd 100755 --- a/pandora_console/godmode/reporting/visual_console_builder.editor.js +++ b/pandora_console/godmode/reporting/visual_console_builder.editor.js @@ -236,8 +236,8 @@ function update_button_palette_callback() { $("#" + idItem).css('width', ''); $("#" + idItem).css('height', ''); } - - set_image("image", idItem, values['image']); + var image = values['image'] + ".png"; + set_image("image", idItem, image); break; default: //Maybe save in any Enterprise item. @@ -1194,11 +1194,11 @@ function set_static_graph_status(idElement, image, status) { function set_image(type, idElement, image) { if (type == "image") { item = "#image_" + idElement; - img_src = "images/console/icons/" + image + ".png"; + img_src = "images/console/icons/" + image; } else if (type == "background") { item = "background_img"; - img_src = "images/console/background/" + image + ".png"; + img_src = "images/console/background/" + image; } var params = []; @@ -1624,8 +1624,8 @@ function createItem(type, values, id_data) { '
' + '' ); - - set_image("image", id_data, values['image']); + var image = values['image'] + ".png"; + set_image("image", id_data, image); break; default: //Maybe create in any Enterprise item.