mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fix preload background image in visual console builder - #1617
This commit is contained in:
parent
215d3c005f
commit
69f44aae13
@ -204,10 +204,11 @@ $(document).ready (function () {
|
|||||||
|
|
||||||
var metaconsole = null;
|
var metaconsole = null;
|
||||||
function is_metaconsole() {
|
function is_metaconsole() {
|
||||||
|
|
||||||
if (metaconsole === null)
|
if (metaconsole === null)
|
||||||
metaconsole = $("input[name='metaconsole']").val();
|
metaconsole = $("input[name='metaconsole']").val();
|
||||||
|
|
||||||
if (metaconsole != 0)
|
if (metaconsole != 0 && metaconsole != undefined)
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
@ -326,7 +327,9 @@ $(document).ready (function () {
|
|||||||
var size_changer_state = false;
|
var size_changer_state = false;
|
||||||
|
|
||||||
$("#background").change(function() {
|
$("#background").change(function() {
|
||||||
|
|
||||||
$('#imagen2').attr('src', url_hack_metaconsole + 'images/console/background/'+$('#background').val());
|
$('#imagen2').attr('src', url_hack_metaconsole + 'images/console/background/'+$('#background').val());
|
||||||
|
|
||||||
$('#imagen2').width(230);
|
$('#imagen2').width(230);
|
||||||
$('#imagen2').show();
|
$('#imagen2').show();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user