trying to wrap overlib again for a different reason now

This commit is contained in:
Travis Hegner
2015-06-29 15:53:24 -04:00
parent cd9287f23c
commit 3927990617
2 changed files with 8 additions and 2 deletions

View File

@@ -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."</a>";

View File

@@ -14,3 +14,9 @@ $(document).ready(function(){
}).removeClass("lazy").removeAttr('width').removeAttr('height');
});
});
function wrap_overlib() {
var ret = overlib(arguments);
$('div#overDiv img').removeAttr('width').removeAttr('height');
return ret;
}