mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
trying to wrap overlib again for a different reason now
This commit is contained in:
@@ -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>";
|
||||
|
||||
|
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user