Fix preload background image in visual console builder - #1617

This commit is contained in:
enriquecd 2017-11-17 12:28:52 +01:00
parent 215d3c005f
commit 69f44aae13
1 changed files with 4 additions and 1 deletions

View File

@ -204,10 +204,11 @@ $(document).ready (function () {
var metaconsole = null;
function is_metaconsole() {
if (metaconsole === null)
metaconsole = $("input[name='metaconsole']").val();
if (metaconsole != 0)
if (metaconsole != 0 && metaconsole != undefined)
return true;
else
return false;
@ -326,7 +327,9 @@ $(document).ready (function () {
var size_changer_state = false;
$("#background").change(function() {
$('#imagen2').attr('src', url_hack_metaconsole + 'images/console/background/'+$('#background').val());
$('#imagen2').width(230);
$('#imagen2').show();
});