# HG changeset patch # User robcast # Date 1351094747 -7200 # Node ID 0c254aa2b7c30501a33413ee150e1a47eb136bd1 # Parent 46239dfab12078e98877b16f2f828403f125a5f4 annotation show/hide works now. diff -r 46239dfab120 -r 0c254aa2b7c3 webapp/src/main/webapp/jquery/jquery.digilib.annotations.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.annotations.js Tue Oct 23 23:20:45 2012 +0200 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotations.js Wed Oct 24 18:05:47 2012 +0200 @@ -49,7 +49,7 @@ toggleAnnotations : function(data) { var show = !data.settings.isAnnotationsVisible; data.settings.isAnnotationsVisible = show; - fn.highlightButtons(data, 'annotations', show); + digilib.fn.highlightButtons(data, 'annotations', show); renderAnnotations(data); }, @@ -134,6 +134,7 @@ console.debug("renderAnnotations: annotations=" + annotations); // clear annotations $elem.find('div.' + cssPrefix + 'annotationmark').remove(); + if (!data.settings.isAnnotationsVisible) return; for (var i = 0; i < annotations.length; i++) { var annotation = annotations[i]; if (data.zoomArea.containsPosition(annotation.pos)) {