Merge branch '1617-Consola-visual-Previsualización-background-no-carga-imagen' into 'develop'

Fix preload background image in visual console builder - #1617

See merge request artica/pandorafms!1090
This commit is contained in:
vgilc 2017-12-21 10:44:03 +01:00
commit 7938f6e65e
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();
});