don't try to load notes if there are no notes

This commit is contained in:
Shish 2012-04-01 17:32:02 +01:00
parent d80d81ea78
commit 84cdd21e09

View File

@ -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 });