mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
lazyload refactoring to be less intrusive
This commit is contained in:
@@ -29,15 +29,6 @@ $(document).ready(function(){
|
||||
});
|
||||
});
|
||||
|
||||
//We have to wrap the original overlib library to remove the WxH attributes
|
||||
function wrap_overlib() {
|
||||
var ret = overlib.apply(null,arguments);
|
||||
//Since RRD takes the width and height params for only the canvas, we must unset them
|
||||
//from the final (larger) image to prevent the browser from resizing them.
|
||||
$('div#overDiv img').removeAttr('width').removeAttr('height').removeClass('lazy');
|
||||
return ret;
|
||||
}
|
||||
|
||||
function lazyload_done() {
|
||||
//Since RRD takes the width and height params for only the canvas, we must unset them
|
||||
//from the final (larger) image to prevent the browser from resizing them.
|
||||
|
Reference in New Issue
Block a user