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
56340968
Commit
56340968
authored
Sep 19, 2014
by
lduarte1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image Annotation Tool: Fixes _isOpenSeaDragon function
parent
4e1aa77b
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 @
56340968
...
...
@@ -577,13 +577,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
var
isRP
=
(
typeof
rp
!=
'undefined'
);
var
isSource
=
false
;
// Double checks that the image being displayed matches the annotations
var
source
=
this
.
viewer
.
source
;
var
tilesUrl
=
typeof
source
.
tilesUrl
!=
'undefined'
?
source
.
tilesUrl
:
''
;
var
functionUrl
=
typeof
source
.
getTileUrl
!=
'undefined'
?
source
.
getTileUrl
:
''
;
var
compareUrl
=
tilesUrl
!=
''
?
tilesUrl
:(
''
+
functionUrl
).
replace
(
/
\s
+/g
,
' '
);
if
(
isContainer
)
isSource
=
(
an
.
target
.
src
==
compareUrl
);
// Though it would be better to store server ids of images in the annotation that
// would require changing annotations that were already made, instead we check if
// the id is a substring of the thumbnail, which according to OpenSeaDragon API should be the case.
var
sourceId
=
this
.
viewer
.
source
[
'@id'
];
var
targetThumb
=
an
.
target
.
thumb
;
if
(
isContainer
)
isSource
=
(
targetThumb
.
indexOf
(
sourceId
)
!==
-
1
);
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