mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fill background vconsole widget with vconsole color source and fix vconsole size editor - #786
This commit is contained in:
parent
3026089fd0
commit
a99eba3a45
pandora_console
@ -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…
x
Reference in New Issue
Block a user