From 66cf9dfffc1ecf043fe61161e8c91c6ee7b88899 Mon Sep 17 00:00:00 2001 From: Louis Bailleul Date: Wed, 25 Nov 2015 17:26:54 +0000 Subject: [PATCH] Only remove the height tag from the lazy loaded images --- html/js/lazyload.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/js/lazyload.js b/html/js/lazyload.js index 723d4e7e6..ec261f8ce 100644 --- a/html/js/lazyload.js +++ b/html/js/lazyload.js @@ -32,5 +32,5 @@ $(document).ready(function(){ 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. - $(this).removeAttr('width').removeAttr('height').removeClass('lazy'); -} \ No newline at end of file + $(this).removeAttr('height').removeClass('lazy'); +}