mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2013-02-14 Miguel de Dios <miguel.dedios@artica.es>
* include/graphs/flot/pandora.flot.js, include/graphs/functions_flot.php, include/graphs/fgraph.php: cleaned source code style. * operation/agentes/stat_win.php: added javascript code to resize the window when show the overview graph. Fixes: #3574134 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7658 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
4ebca1576e
commit
b936e7ec11
@ -1,3 +1,14 @@
|
||||
2013-02-14 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/graphs/flot/pandora.flot.js,
|
||||
include/graphs/functions_flot.php, include/graphs/fgraph.php:
|
||||
cleaned source code style.
|
||||
|
||||
* operation/agentes/stat_win.php: added javascript code to resize
|
||||
the window when show the overview graph.
|
||||
|
||||
Fixes: #3574134
|
||||
|
||||
2013-02-14 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* operation/snmpconsole/snmp_browser.php: Changed the size of some
|
||||
|
@ -459,4 +459,36 @@ $label = base64_decode(get_parameter('label', ''));
|
||||
$('#checkbox-time_compare_overlapped').click(function() {
|
||||
$('#checkbox-time_compare_separated').removeAttr('checked');
|
||||
});
|
||||
|
||||
|
||||
<?php
|
||||
//Resize window when show the overview graph.
|
||||
if ($config['flash_charts']) {
|
||||
?>
|
||||
var show_overview = false;
|
||||
var height_window;
|
||||
var width_window;
|
||||
$(document).ready(function() {
|
||||
height_window = $(window).height();
|
||||
width_window = $(window).width();
|
||||
});
|
||||
|
||||
$("*").filter(function() {
|
||||
if (typeof(this.id) == "string")
|
||||
return this.id.match(/menu_overview_graph.*/);
|
||||
else
|
||||
return false;
|
||||
}).click(function() {
|
||||
if (show_overview) {
|
||||
window.resizeTo(width_window, height_window + 15);
|
||||
}
|
||||
else {
|
||||
window.resizeTo(width_window, height_window + 100);
|
||||
}
|
||||
show_overview = !show_overview;
|
||||
|
||||
});
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user