From 392799061775f42f6247afaa967bd69035197808 Mon Sep 17 00:00:00 2001 From: Travis Hegner Date: Mon, 29 Jun 2015 15:53:24 -0400 Subject: [PATCH] trying to wrap overlib again for a different reason now --- html/includes/functions.inc.php | 2 +- html/js/lazyload.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 72596ac353..1bc98bfa13 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -191,7 +191,7 @@ function overlib_link($url, $text, $contents, $class) if ($config['web_mouseover'] === FALSE) { $output .= ">"; } else { - $output .= " onmouseover=\"return overlib('".str_replace('data-original', 'src', $contents)."'".$config['overlib_defaults'].",WRAP,HAUTO,VAUTO); \" onmouseout=\"return nd();\">"; + $output .= " onmouseover=\"return wrap_overlib('".str_replace('data-original', 'src', $contents)."'".$config['overlib_defaults'].",WRAP,HAUTO,VAUTO); \" onmouseout=\"return nd();\">"; } $output .= $text.""; diff --git a/html/js/lazyload.js b/html/js/lazyload.js index 066cd570dc..aa219a0718 100644 --- a/html/js/lazyload.js +++ b/html/js/lazyload.js @@ -13,4 +13,10 @@ $(document).ready(function(){ placeholder: "" }).removeClass("lazy").removeAttr('width').removeAttr('height'); }); -}); \ No newline at end of file +}); + +function wrap_overlib() { + var ret = overlib(arguments); + $('div#overDiv img').removeAttr('width').removeAttr('height'); + return ret; +} \ No newline at end of file