Nyromodal will work for links like
<a href="./image.png" class="nyroModal">Image</a>
but not for <a href="http://test.tld/image.png" class="nyroModal">Image</a>
In the last case, nyromodal thinks it is an iframe, though i dont want it
to be an iframe. The problem is that the image will show up in the modal
box, but it won't resize to fit the image. The modal box will take the
height and the width from the min values (i mean minHeight and minWidth).
I've tried
$(document).ready(function(){
$(".imgP").click(function(e) {
e.preventDefault();
$.nyroModalManual({
type: 'image',
url: $(this).attr("src")
});
return false;
});
howether it doesnt want to set the type to image (still type iframe remains).
Labels: Type-Defect