Use bootstraps own img-responsive class for responsive graphs

This commit is contained in:
Arjit Chaudhary
2015-12-15 17:54:19 +05:30
parent a063d24dac
commit 9564883814

View File

@ -478,10 +478,10 @@ function generate_lazy_graph_tag($args) {
}
if ($config['enable_lazy_load'] === true) {
return '<img class="lazy graphs" width="'.$w.'" height="'.$h.'" data-original="graph.php?' . implode('&amp;',$urlargs).'" border="0" />';
return '<img class="lazy img-responsive" data-original="graph.php?' . implode('&amp;',$urlargs).'" border="0" />';
}
else {
return '<img class="graphs" width="'.$w.'" height="'.$h.'" src="graph.php?' . implode('&amp;',$urlargs).'" border="0" />';
return '<img class="img-responsive" src="graph.php?' . implode('&amp;',$urlargs).'" border="0" />';
}
}//end generate_lazy_graph_tag()