Commit ddce3291 by Christina Roberts Committed by GitHub

Merge pull request #13629 from ubc/fix-OpenSeaDragonAnnotation

Fix the wrong target.src for annotations
parents 29061fcd 03809c8c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment