# HG changeset patch # User robcast # Date 1353944697 -3600 # Node ID 8ad8687e7f9f5adaf7d5c1c06aaed8098c3d6345 # Parent 09691152636e442530a16c0ee30fc6df0866f190 shoAnnotationNumbers controls now also numbers on mark-annotations. diff -r 09691152636e -r 8ad8687e7f9f 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 = $('
'); } else { // render point