# HG changeset patch # User robcast # Date 1351094747 -7200 # Node ID ebdde1bbb02687d02b084a24401c4f7679e06fbd # Parent 3c75dda660bfc331e80d5d69850502dd1802ae0e annotation show/hide works now. diff -r 3c75dda660bf -r ebdde1bbb026 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)) {