mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Fix background color, countdown refresh box, and make graphs dynamics - #865
This commit is contained in:
parent
03158ccc16
commit
ab9930d4f3
@ -84,7 +84,7 @@ if ($layout) {
|
|||||||
//~ ob_start();
|
//~ ob_start();
|
||||||
//~ // Render map
|
//~ // Render map
|
||||||
visual_map_print_visual_map($id_layout, true, true, $width, $height,
|
visual_map_print_visual_map($id_layout, true, true, $width, $height,
|
||||||
'../../', true, $graph_javascript, true);
|
'../../', true, true, true);
|
||||||
//~ return;
|
//~ return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -92,7 +92,7 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Floating menu - Start
|
// Floating menu - Start
|
||||||
echo '<div id="vc-controls">';
|
echo '<div id="vc-controls" style="z-index:300;">';
|
||||||
|
|
||||||
echo '<div id="menu_tab">';
|
echo '<div id="menu_tab">';
|
||||||
echo '<ul class="mn">';
|
echo '<ul class="mn">';
|
||||||
@ -191,6 +191,72 @@ $ignored_params['refr'] = '';
|
|||||||
startCountDown(refr, false);
|
startCountDown(refr, false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('body').css('background-color','<?php echo $layout["background_color"]; ?>');
|
||||||
|
|
||||||
|
$(".module_graph .menu_graph").css('display','none');
|
||||||
|
|
||||||
|
$(".parent_graph").each(function(){
|
||||||
|
|
||||||
|
if($(this).css('background-color') != 'rgb(255, 255, 255)'){
|
||||||
|
$(this).css('color', '#999');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".overlay").removeClass("overlay").addClass("overlaydisabled");
|
||||||
|
|
||||||
|
$('.item:not(.icon) img').each(function(){
|
||||||
|
|
||||||
|
|
||||||
|
if($(this).css('float')=='left' || $(this).css('float')=='right'){
|
||||||
|
|
||||||
|
|
||||||
|
$(this).css('margin-top',(parseInt($(this).parent().parent().css('height'))/2-parseInt($(this).css('height'))/2)+'px');
|
||||||
|
$(this).css('margin-left','');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$(this).css('margin-left',(parseInt($(this).parent().parent().css('width'))/2-parseInt($(this).css('width'))/2)+'px');
|
||||||
|
$(this).css('margin-top','');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.item > div').each(function(){
|
||||||
|
if($(this).css('float')=='left' || $(this).css('float')=='right'){
|
||||||
|
|
||||||
|
|
||||||
|
$(this).css('margin-top',(parseInt($(this).parent().css('height'))/2-parseInt($(this).css('height'))/2-15)+'px');
|
||||||
|
$(this).css('margin-left','');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$(this).css('margin-left',(parseInt($(this).parent().css('width'))/2-parseInt($(this).css('width'))/2)+'px');
|
||||||
|
$(this).css('margin-top','');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('.item > a > div').each(function(){
|
||||||
|
if($(this).css('float')=='left' || $(this).css('float')=='right'){
|
||||||
|
|
||||||
|
|
||||||
|
$(this).css('margin-top',(parseInt($(this).parent().parent().css('height'))/2-parseInt($(this).css('height'))/2-5)+'px');
|
||||||
|
$(this).css('margin-left','');
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$(this).css('margin-left',(parseInt($(this).parent().parent().css('width'))/2-parseInt($(this).css('width'))/2)+'px');
|
||||||
|
$(this).css('margin-top','');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".graph:not([class~='noresizevc'])").each(function(){
|
||||||
|
height = parseInt($(this).css("height")) - 30;
|
||||||
|
$(this).css('height', height);
|
||||||
|
});
|
||||||
|
|
||||||
// Start the map fetch
|
// Start the map fetch
|
||||||
//~ fetchMap();
|
//~ fetchMap();
|
||||||
});
|
});
|
||||||
|
@ -230,6 +230,11 @@ $ignored_params['refr'] = '';
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(".graph:not([class~='noresizevc'])").each(function(){
|
||||||
|
height = parseInt($(this).css("height")) - 30;
|
||||||
|
$(this).css('height', height);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
Loading…
x
Reference in New Issue
Block a user