# HG changeset patch # User robcast # Date 1355322741 18000 # Node ID 3cfeec734282891a63689aa99048f6a692659551 # Parent dcf55ac4ed4e146ccf6702997b0a5ddeb79270ea small fixes. diff -r dcf55ac4ed4e -r 3cfeec734282 webapp/src/main/webapp/jquery/jquery.digilib.annotator.js --- 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 = '
'+idx+'
'; $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); };