lazyload refactoring to be less intrusive

This commit is contained in:
Travis Hegner
2015-07-07 09:29:27 -04:00
parent 32e1a5d216
commit 1f5f32ce06
22 changed files with 36 additions and 34 deletions

View File

@@ -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.