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
6bbe82b6
Commit
6bbe82b6
authored
Oct 31, 2012
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make work w/ ie8. Still complains that HTMLCanvasElement is undefined
but doesn't try to manipulate it.
parent
9cb2fbdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/js/src/capa/schematic.js
+4
-4
No files found.
common/lib/xmodule/xmodule/js/src/capa/schematic.js
View file @
6bbe82b6
...
...
@@ -1995,7 +1995,7 @@ cktsim = (function() {
// set up each schematic entry widget
function
update_schematics
()
{
// set up each schematic on the page
var
schematics
=
document
.
getElementsByClassName
(
'
schematic'
);
var
schematics
=
$
(
'.
schematic'
);
for
(
var
i
=
0
;
i
<
schematics
.
length
;
++
i
)
if
(
schematics
[
i
].
getAttribute
(
"loaded"
)
!=
"true"
)
{
try
{
...
...
@@ -2036,7 +2036,7 @@ function add_schematic_handler(other_onload) {
// ask each schematic input widget to update its value field for submission
function
prepare_schematics
()
{
var
schematics
=
document
.
getElementsByClassName
(
'
schematic'
);
var
schematics
=
$
(
'.
schematic'
);
for
(
var
i
=
schematics
.
length
-
1
;
i
>=
0
;
i
--
)
schematics
[
i
].
schematic
.
update_value
();
}
...
...
@@ -3339,7 +3339,7 @@ schematic = (function() {
}
// add method to canvas to compute relative coords for event
HTMLCanvasElement
.
prototype
.
relMouseCoords
=
function
(
event
){
if
(
HTMLCanvasElement
)
HTMLCanvasElement
.
prototype
.
relMouseCoords
=
function
(
event
){
// run up the DOM tree to figure out coords for top,left of canvas
var
totalOffsetX
=
0
;
var
totalOffsetY
=
0
;
...
...
@@ -3718,7 +3718,7 @@ schematic = (function() {
// look for property input fields in the content and give
// them a keypress listener that interprets ENTER as
// clicking OK.
var
plist
=
content
.
getElementsByClassName
(
'
property'
);
var
plist
=
$
(
content
).
find
(
'.
property'
);
for
(
var
i
=
plist
.
length
-
1
;
i
>=
0
;
--
i
)
{
var
field
=
plist
[
i
];
field
.
dialog
=
dialog
;
// help event handler find us...
...
...
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