Fixed problems with add icon in visual console. Tiquet: #2528

This commit is contained in:
m-lopez-f 2015-08-06 09:24:44 +02:00
parent 6abb626b5b
commit dc035cc591
1 changed files with 2 additions and 2 deletions

View File

@ -1194,11 +1194,11 @@ function set_static_graph_status(idElement, image, status) {
function set_image(type, idElement, image) { function set_image(type, idElement, image) {
if (type == "image") { if (type == "image") {
item = "#image_" + idElement; item = "#image_" + idElement;
img_src = "images/console/icons/" + image; img_src = "images/console/icons/" + image + ".png";
} }
else if (type == "background") { else if (type == "background") {
item = "background_img"; item = "background_img";
img_src = "images/console/background/" + image; img_src = "images/console/background/" + image + ".png";
} }
var params = []; var params = [];