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
dd6d7e99
Commit
dd6d7e99
authored
Oct 27, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #981 from MITx/kimth/fix-imageresponse
Fix imageresponse in Firefox
parents
da56f190
98c3d861
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/js/src/capa/imageinput.js
+2
-2
No files found.
common/lib/xmodule/xmodule/js/src/capa/imageinput.js
View file @
dd6d7e99
...
...
@@ -11,8 +11,8 @@
function
image_input_click
(
id
,
event
){
iidiv
=
document
.
getElementById
(
"imageinput_"
+
id
);
pos_x
=
event
.
offsetX
?(
event
.
offsetX
):
event
.
pageX
-
document
.
iidiv
.
offsetLeft
;
pos_y
=
event
.
offsetY
?(
event
.
offsetY
):
event
.
pageY
-
document
.
iidiv
.
offsetTop
;
pos_x
=
event
.
offsetX
?(
event
.
offsetX
):
event
.
pageX
-
iidiv
.
offsetLeft
;
pos_y
=
event
.
offsetY
?(
event
.
offsetY
):
event
.
pageY
-
iidiv
.
offsetTop
;
result
=
"["
+
pos_x
+
","
+
pos_y
+
"]"
;
cx
=
(
pos_x
-
15
)
+
"px"
;
cy
=
(
pos_y
-
15
)
+
"px"
;
...
...
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