don't try to load notes if there are no notes
This commit is contained in:
parent
d80d81ea78
commit
84cdd21e09
@ -1,5 +1,7 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
$('#main_image').imgNotes(); //If your notes data is is not named notes pass it
|
if(window.notes) {
|
||||||
|
$('#main_image').imgNotes(window.notes);
|
||||||
|
}
|
||||||
|
|
||||||
$('#cancelnote').click(function(){
|
$('#cancelnote').click(function(){
|
||||||
$('#main_image').imgAreaSelect({ hide: true });
|
$('#main_image').imgAreaSelect({ hide: true });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user