From 03809c8c5cbeb4484f06cd925318a438f3954bfc Mon Sep 17 00:00:00 2001 From: Pan Luo Date: Sun, 2 Oct 2016 00:20:50 -0700 Subject: [PATCH] Fix the wrong target.src for annotations The annotation.target.src was assigned to a function instead of a string because the missing brackets. --- common/static/js/vendor/ova/OpenSeaDragonAnnotation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/static/js/vendor/ova/OpenSeaDragonAnnotation.js b/common/static/js/vendor/ova/OpenSeaDragonAnnotation.js index e6bcfade41..52ddbe279d 100644 --- a/common/static/js/vendor/ova/OpenSeaDragonAnnotation.js +++ b/common/static/js/vendor/ova/OpenSeaDragonAnnotation.js @@ -805,7 +805,7 @@ Annotator.Plugin.OpenSeaDragon = (function(_super) { // Save source url var source = osda.viewer.source; var tilesUrl = typeof source.tilesUrl!='undefined'?source.tilesUrl:''; - var functionUrl = typeof source.getTileUrl!='undefined'?source.getTileUrl:''; + var functionUrl = typeof source.getTileUrl!='undefined'?source.getTileUrl():''; annotation.target.src = tilesUrl!=''?tilesUrl:('' + functionUrl).replace(/\s+/g, ' '); // - target.src (media source) annotation.target.ext = source.fileFormat || ""; // - target.ext (extension)