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
eace1413
Commit
eace1413
authored
Jul 01, 2014
by
lduarte1991
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image Annotation Tool: Fixed Viewport Timeout Issue
parent
e80992cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
common/static/js/vendor/ova/share-annotator.js
+4
-3
No files found.
common/static/js/vendor/ova/share-annotator.js
View file @
eace1413
...
...
@@ -330,9 +330,10 @@ Annotator.Plugin.Share = (function(_super) {
}
}
else
if
(
self
.
_isImage
(
an
)){
//It is a OpenSeaDragon Annotation
var
bounds
=
new
OpenSeadragon
.
Rect
(
an
.
bounds
.
x
,
an
.
bounds
.
y
,
an
.
bounds
.
width
,
an
.
bounds
.
height
);
osda
.
viewer
.
viewport
.
fitBounds
(
bounds
,
false
);
$
(
'html,body'
).
animate
({
scrollTop
:
$
(
"#"
+
an
.
target
.
container
).
offset
().
top
},
'slow'
);
setTimeout
(
function
(){
osda
.
viewer
.
viewport
.
fitBounds
(
bounds
,
false
);
$
(
'html,body'
).
animate
({
scrollTop
:
$
(
"#"
+
an
.
target
.
container
).
offset
().
top
},
'slow'
);},
250
);
}
else
{
//It is a text
self
.
_isImage
(
an
);
var
hasRanges
=
typeof
an
.
ranges
!=
'undefined'
&&
typeof
an
.
ranges
[
0
]
!=
'undefined'
,
...
...
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