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:
commit
211183e382
|
@ -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(){
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue