# HG changeset patch # User robcast # Date 1353944697 -3600 # Node ID d9d17eb3d73127d21203542f6c4acc67ca1b4b37 # Parent 05f7eb1ba0a27e073edd3213ac45c4db689b2748 shoAnnotationNumbers controls now also numbers on mark-annotations. diff -r 05f7eb1ba0a2 -r d9d17eb3d731 webapp/src/main/webapp/jquery/jquery.digilib.annotator.js --- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Sun Nov 25 21:01:13 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Mon Nov 26 16:44:57 2012 +0100 @@ -246,7 +246,11 @@ var $elem = data.$elem; var annotator = data.annotator; var annotation = annot.annotation; - var idx = annot.idx ? annot.idx : '?'; + var idx = ''; + if (data.settings.showAnnotationNumbers) { + // show annotation number + idx = annot.idx ? annot.idx : '?'; + } var area = null; var type = null; if (annotation.shapes != null) { @@ -280,10 +284,6 @@ var clippedArea = data.zoomArea.intersect(area); if (clippedArea == null) return; screenRect = data.imgTrafo.transform(clippedArea); - if (!data.settings.showAnnotationNumbers) { - // suppress annotation number - idx = ''; - } $annotation = $('
'+idx+'
'); } else { // render point