Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d3fffde3
Commit
d3fffde3
authored
Sep 19, 2014
by
lduarte1991
Committed by
Sarina Canelake
Sep 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image Annotation Tool: Fixes _isOpenSeaDragon function
parent
d7c715eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
common/static/js/vendor/ova/OpenSeaDragonAnnotation.js
+6
-7
No files found.
common/static/js/vendor/ova/OpenSeaDragonAnnotation.js
View file @
d3fffde3
...
@@ -577,13 +577,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
...
@@ -577,13 +577,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
var
isRP
=
(
typeof
rp
!=
'undefined'
);
var
isRP
=
(
typeof
rp
!=
'undefined'
);
var
isSource
=
false
;
var
isSource
=
false
;
// Double checks that the image being displayed matches the annotations
// Though it would be better to store server ids of images in the annotation that
var
source
=
this
.
viewer
.
source
;
// would require changing annotations that were already made, instead we check if
var
tilesUrl
=
typeof
source
.
tilesUrl
!=
'undefined'
?
source
.
tilesUrl
:
''
;
// the id is a substring of the thumbnail, which according to OpenSeaDragon API should be the case.
var
functionUrl
=
typeof
source
.
getTileUrl
!=
'undefined'
?
source
.
getTileUrl
:
''
;
var
sourceId
=
this
.
viewer
.
source
[
'@id'
];
var
compareUrl
=
tilesUrl
!=
''
?
tilesUrl
:(
''
+
functionUrl
).
replace
(
/
\s
+/g
,
' '
);
var
targetThumb
=
an
.
target
.
thumb
;
if
(
isContainer
)
isSource
=
(
an
.
target
.
src
==
compareUrl
);
if
(
isContainer
)
isSource
=
(
targetThumb
.
indexOf
(
sourceId
)
!==
-
1
);
return
(
isOpenSeaDragon
&&
isContainer
&&
isImage
&&
isRP
&&
isSource
);
return
(
isOpenSeaDragon
&&
isContainer
&&
isImage
&&
isRP
&&
isSource
);
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment