avoid loading imgnotes until image is fully loaded

This commit is contained in:
Daku 2014-05-23 21:46:13 +01:00
parent 3d11df44a9
commit ae0a4725a0

View File

@ -2,8 +2,9 @@
$(function() { $(function() {
if(window.notes) { if(window.notes) {
$('#main_image').load(function(){
$('#main_image').imgNotes({notes: window.notes}); $('#main_image').imgNotes({notes: window.notes});
$(window).resize(); //Simulate window resize to fix note positioning });
} }
$('#cancelnote').click(function(){ $('#cancelnote').click(function(){