Merge branch '786-consolas-visuales-en-modo-full-screen-no-respetan-el-color-de-fondo-open' into 'develop'

Fill background vconsole widget with vconsole color source and fix vconsole size editor - #786

See merge request !417
This commit is contained in:
vgilc 2017-04-27 17:24:59 +02:00
commit 211183e382
2 changed files with 22 additions and 6 deletions

View File

@ -281,6 +281,10 @@ $(document).ready (function () {
}
});
//Preload image size and activate auto image size changer when user click over a image in the selector
var size_changer_state = false;
$("#background").change(function() {
$('#imagen2').attr('src','images/console/background/'+$('#background').val());
@ -288,12 +292,18 @@ $(document).ready (function () {
$('#imagen2').show();
});
$("#background").mouseout(function() {
$('#imagen').attr('src','images/console/background/'+$('#background').val());
$('input[name=width]').val($('#imagen').width());
$('input[name=height]').val($('#imagen').height());
$('#preimagew').html($('#imagen').width());
$('#preimageh').html($('#imagen').height());
$("#background").click(function(){
size_changer_state = true;
});
$("#background").mouseout(function() {
if(size_changer_state){
$('#imagen').attr('src','images/console/background/'+$('#background').val());
$('input[name=width]').val($('#imagen').width());
$('input[name=height]').val($('#imagen').height());
$('#preimagew').html($('#imagen').width());
$('#preimageh').html($('#imagen').height());
}
});
$("#file-background_image").change(function(){

View File

@ -198,10 +198,16 @@ if ($config['pure']) {
/* Avoid the main_pure container 1000px height */
body.pure {
min-height: 100px;
<?php
echo "background-color: ".$layout['background_color'].";";
?>
}
div#main_pure {
height: 100%;
margin: 0px;
<?php
echo "background-color: ".$layout['background_color'].";";
?>
}
</style>
<?php