mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Fixed error when changes the background in visual console. Ticket#3076
This commit is contained in:
parent
9ffd92dfa4
commit
de7d011c2a
@ -167,7 +167,7 @@ function update_button_palette_callback() {
|
|||||||
$("#background").css('height', values['height']);
|
$("#background").css('height', values['height']);
|
||||||
|
|
||||||
//$("#background").css('background', 'url(images/console/background/' + values['background'] + ')');
|
//$("#background").css('background', 'url(images/console/background/' + values['background'] + ')');
|
||||||
|
var image = values['background'];
|
||||||
$("#background_img").attr('src', "images/spinner.gif");
|
$("#background_img").attr('src', "images/spinner.gif");
|
||||||
set_image("background", null, image);
|
set_image("background", null, image);
|
||||||
|
|
||||||
@ -1201,7 +1201,7 @@ function set_image(type, idElement, image) {
|
|||||||
img_src = "images/console/icons/" + image;
|
img_src = "images/console/icons/" + image;
|
||||||
}
|
}
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user