#13010 Fixed services 3

This commit is contained in:
Daniel Maya 2024-03-18 12:23:45 +01:00
parent 75eb8e2558
commit e5e857116b
1 changed files with 8 additions and 3 deletions

View File

@ -907,10 +907,15 @@ function findInSelect(selectid, find){
}) })
} }
$('#image').on('change', function(){ $('#image').on('change', function() {
var img = $(this).val(); var img = $(this).val();
$('#image_prev').html('<img src="<?php echo $config['homeurl']; ?>/images/console/icons/'+img+'.png">'); var src = "<?php echo $config['homeurl']; ?>"+`/images/console/icons/${img}.png`;
}) if (metaconsole_enabled) {
src = "<?php echo $config['homeurl']; ?>"+`../../images/console/icons/${img}.png`;
}
$('#image_prev').html(`<img src="${src}">`);
});
</script> </script>
<style type="text/css"> <style type="text/css">