Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
problem-builder
Commits
312a45f4
Commit
312a45f4
authored
Sep 12, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jshint mentoring.js
parent
05a3e9b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mentoring/public/js/mentoring.js
+5
-4
No files found.
mentoring/public/js/mentoring.js
View file @
312a45f4
...
@@ -18,10 +18,11 @@ function MentoringBlock(runtime, element) {
...
@@ -18,10 +18,11 @@ function MentoringBlock(runtime, element) {
feedback_box
=
".mentoring .feedback"
;
feedback_box
=
".mentoring .feedback"
;
if
(
target
.
is
(
feedback_box
))
{
if
(
target
.
is
(
feedback_box
))
{
return
;
return
;
};
}
if
(
target
.
parents
(
feedback_box
).
length
>
0
)
{
if
(
target
.
parents
(
feedback_box
).
length
>
0
)
{
return
;
return
;
}
;
}
$
(
feedback_box
).
each
(
function
(
i
,
el
)
{
$
(
feedback_box
).
each
(
function
(
i
,
el
)
{
el
=
$
(
el
);
el
=
$
(
el
);
...
@@ -85,7 +86,7 @@ function MentoringBlock(runtime, element) {
...
@@ -85,7 +86,7 @@ function MentoringBlock(runtime, element) {
/* Init and display a child. */
/* Init and display a child. */
function
displayChild
(
index
,
options
)
{
function
displayChild
(
index
,
options
)
{
var
options
=
options
||
{};
options
=
options
||
{};
options
.
mode
=
data
.
mode
;
options
.
mode
=
data
.
mode
;
if
(
index
>=
children
.
length
)
if
(
index
>=
children
.
length
)
return
children
.
length
;
return
children
.
length
;
...
@@ -126,7 +127,7 @@ function MentoringBlock(runtime, element) {
...
@@ -126,7 +127,7 @@ function MentoringBlock(runtime, element) {
getChildByName
:
getChildByName
,
getChildByName
:
getChildByName
,
step
:
step
,
step
:
step
,
publish_event
:
publish_event
publish_event
:
publish_event
}
}
;
if
(
data
.
mode
===
'standard'
)
{
if
(
data
.
mode
===
'standard'
)
{
MentoringStandardView
(
runtime
,
element
,
mentoring
);
MentoringStandardView
(
runtime
,
element
,
mentoring
);
...
...
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