avoid loading imgnotes until image is fully loaded
This commit is contained in:
parent
3d11df44a9
commit
ae0a4725a0
@ -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(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user