| Issue 90: | Manual Call for Images | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I'm try manually call image modal.
this is what i currently have
$('#albumArt').click(function(e) {
e.preventDefault();
$.nyroModalManual({
type: 'image',
content: '<img class="nyroModal" src="URL" title="Some Text"/>'
});
return false;
});
this brings up the image but the title doesn't show.
what is the correct manual call syntax for images?
Nov 22, 2008
the title doesn't show and the dimensions default to minWidth and minHeight which should have been calculated automatically. |
Hi Epohcj, Sorry for the long delay... In the new 1.3.0 release, this will work: $('#albumArt').click(function(e) { e.preventDefault(); $.nyroModalManual({ url: 'yourImage.jpg', defaultImgAlt: 'Your Title' }); return false; });Labels: -Type-Defect Type-Other