From 9564883814b53bce98a85d97f20f8d45133cf9bb Mon Sep 17 00:00:00 2001 From: Arjit Chaudhary Date: Tue, 15 Dec 2015 17:54:19 +0530 Subject: [PATCH 1/3] Use bootstraps own img-responsive class for responsive graphs --- html/includes/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index b30325590..24c5ff2ec 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -478,10 +478,10 @@ function generate_lazy_graph_tag($args) { } if ($config['enable_lazy_load'] === true) { - return ''; + return ''; } else { - return ''; + return ''; } }//end generate_lazy_graph_tag() From e1e7b8374767ff6531aa2f28d362f739cbba4222 Mon Sep 17 00:00:00 2001 From: Arjit Chaudhary Date: Mon, 21 Dec 2015 18:33:35 +0530 Subject: [PATCH 2/3] Put graphs correctly in a row --- html/includes/print-graphrow.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/includes/print-graphrow.inc.php b/html/includes/print-graphrow.inc.php index f6157a953..9b98a8039 100644 --- a/html/includes/print-graphrow.inc.php +++ b/html/includes/print-graphrow.inc.php @@ -71,6 +71,8 @@ foreach ($periods as $period) { $graph_data[] = overlib_link($link, generate_lazy_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL); } else { + echo "
"; echo(overlib_link($link, generate_lazy_graph_tag($graph_array), generate_graph_tag($graph_array_zoom), NULL)); + echo "
"; } } From 6eec2ca4c9c9dc142af6445e7fb83fc63b677c1d Mon Sep 17 00:00:00 2001 From: Arjit Chaudhary Date: Mon, 21 Dec 2015 18:34:02 +0530 Subject: [PATCH 3/3] Add row class --- html/includes/print-device-graph.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/includes/print-device-graph.php b/html/includes/print-device-graph.php index d713859c6..da85f4e63 100644 --- a/html/includes/print-device-graph.php +++ b/html/includes/print-device-graph.php @@ -18,9 +18,9 @@ echo '
'; - +echo "
"; require 'includes/print-graphrow.inc.php'; - +echo '
'; echo '
'; echo ''; $g_i++;