avoid loading imgnotes until image is fully loaded
This commit is contained in:
parent
3d11df44a9
commit
ae0a4725a0
@ -2,8 +2,9 @@
|
||||
|
||||
$(function() {
|
||||
if(window.notes) {
|
||||
$('#main_image').imgNotes({notes: window.notes});
|
||||
$(window).resize(); //Simulate window resize to fix note positioning
|
||||
$('#main_image').load(function(){
|
||||
$('#main_image').imgNotes({notes: window.notes});
|
||||
});
|
||||
}
|
||||
|
||||
$('#cancelnote').click(function(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user