mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-14 16:04:30 +02:00
change src to 'data-original', adding binding function to document ready
This commit is contained in:
@@ -353,7 +353,7 @@ function generate_graph_tag($args)
|
||||
$urlargs[] = $key."=".urlencode($arg);
|
||||
}
|
||||
|
||||
return '<img class="lazy" width="'.$w.'" height="'.$h.'" src="graph.php?' . implode('&',$urlargs).'" border="0" />';
|
||||
return '<img class="lazy" width="'.$w.'" height="'.$h.'" data-original="graph.php?' . implode('&',$urlargs).'" border="0" />';
|
||||
}
|
||||
|
||||
function generate_graph_js_state($args) {
|
||||
|
||||
@@ -320,6 +320,10 @@ if ($no_refresh !== TRUE && $config['page_refresh'] != 0) {
|
||||
echo('<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
|
||||
$("img.lazy").lazyload({
|
||||
effect: "fadeIn"
|
||||
});
|
||||
|
||||
$("#countdown_timer_status").html("<i class=\"fa fa-pause fa-fw\"></i> Pause");
|
||||
var Countdown = {
|
||||
sec: '. $config['page_refresh'] .',
|
||||
|
||||
Reference in New Issue
Block a user