Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crowdsourcehinter
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
OpenEdx
crowdsourcehinter
Commits
a8e14d11
Commit
a8e14d11
authored
Nov 10, 2014
by
Sola
Committed by
Piotr Mitros
Oct 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
faulty onStudentSubmission for hangout
parent
2c6f303f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
crowdsourcehinter/static/js/src/crowdsourcehinter.js
+7
-6
No files found.
crowdsourcehinter/static/js/src/crowdsourcehinter.js
View file @
a8e14d11
...
@@ -16,13 +16,13 @@ function CrowdsourceHinter(runtime, element){
...
@@ -16,13 +16,13 @@ function CrowdsourceHinter(runtime, element){
Logger
.
listen
(
'seq_goto'
,
null
,
stopScript
);
Logger
.
listen
(
'seq_goto'
,
null
,
stopScript
);
//read the data from the problem_graded event here
//read the data from the problem_graded event here
function
get_event_data
(
event_type
,
data
,
element
){
//
function get_event_data(event_type, data, element){
console
.
log
(
"is this still changing"
);
//
console.log("is this still changing");
onStudentSubmission
(
data
);
//
onStudentSubmission(data);
}
//
}
Logger
.
listen
(
'problem_graded'
,
null
,
get_event_data
);
//
Logger.listen('problem_graded', null, get_event_data);
function
onStudentSubmission
(
problem_graded_event_data
){
function
onStudentSubmission
(
event_type
,
problem_graded_event_data
,
element
){
//This function will determine whether or not the student correctly answered the question.
//This function will determine whether or not the student correctly answered the question.
//If it was correctly answered it will begin the process for giving feedback on hints.
//If it was correctly answered it will begin the process for giving feedback on hints.
if
(
problem_graded_event_data
[
1
].
search
(
/class="correct/
)
===
-
1
){
if
(
problem_graded_event_data
[
1
].
search
(
/class="correct/
)
===
-
1
){
...
@@ -63,6 +63,7 @@ function CrowdsourceHinter(runtime, element){
...
@@ -63,6 +63,7 @@ function CrowdsourceHinter(runtime, element){
});
});
}
}
}
}
Logger
.
listen
(
'problem_graded'
,
null
,
onStudentSubmission
);
function
seehint
(
result
){
function
seehint
(
result
){
//Show a hint to the student after an incorrect answer is submitted.
//Show a hint to the student after an incorrect answer is submitted.
...
...
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