mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
putting WxH back, but removing them via javascript after lazyloading finishes
This commit is contained in:
@@ -353,8 +353,7 @@ function generate_graph_tag($args)
|
||||
$urlargs[] = $key."=".urlencode($arg);
|
||||
}
|
||||
|
||||
//return '<img class="lazy" width="'.$w.'" height="'.$h.'" data-original="graph.php?' . implode('&',$urlargs).'" border="0" />';
|
||||
return '<img class="lazy" data-original="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) {
|
||||
|
@@ -3,16 +3,14 @@ $(document).ready(function(){
|
||||
$("img.lazy").lazyload({
|
||||
effect: "fadeIn",
|
||||
threshold: 300,
|
||||
placeholder: "",
|
||||
skip_invisible: false
|
||||
}).removeClass("lazy");
|
||||
placeholder: ""
|
||||
}).removeClass("lazy").removeAttr('width').removeAttr('height');
|
||||
|
||||
$(document).ajaxStop(function() {
|
||||
$("img.lazy").lazyload({
|
||||
effect: "fadeIn",
|
||||
threshold: 300,
|
||||
placeholder: "",
|
||||
skip_invisible: false
|
||||
}).removeClass("lazy");
|
||||
placeholder: ""
|
||||
}).removeClass("lazy").removeAttr('width').removeAttr('height');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user