Mercurial > hg > digilib-old
changeset 1154:3cfeec734282
small fixes.
author | robcast |
---|---|
date | Wed, 12 Dec 2012 09:32:21 -0500 |
parents | dcf55ac4ed4e |
children | 6423240583fb |
files | webapp/src/main/webapp/jquery/jquery.digilib.annotator.js |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Tue Nov 27 14:42:18 2012 +0100 +++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js Wed Dec 12 09:32:21 2012 -0500 @@ -272,7 +272,7 @@ } } else if (annotation.areas != null) { // legacy annotation areas - shape = annotation.areas[0] + shape = annotation.areas[0]; area = geom.rectangle(shape); if (area.isRectangle()) { type = 'rectangle'; @@ -294,7 +294,7 @@ } else { // render point if (!data.zoomArea.containsPosition(area)) return; - var screenRect = data.imgTrafo.transform(area); + screenRect = data.imgTrafo.transform(area); // create annotation var html = '<div class="'+cssPrefix+'annotationmark '+cssPrefix+'overlay annotator-hl">'+idx+'</div>'; $annotation = $(html); @@ -316,9 +316,9 @@ // hook up Annotator events $annotation.on("mouseover", annotator.onHighlightMouseover); $annotation.on("mouseout", annotator.startViewerHideTimer); - $annotation.on('click.dlAnnotation', function (event) { + $annotation.on('click.dlAnnotation', function(event) { $(data).trigger('annotationClick', [$annotation]); - }); + }); screenRect.adjustDiv($annotation); };