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
a15c2d73
Commit
a15c2d73
authored
Aug 06, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change to .text() extraction of template, fix SafeWaiter error handling
parent
e0760d95
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
lms/static/coffee/src/instructor_dashboard/analytics.coffee
+2
-2
lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee
+2
-4
No files found.
lms/static/coffee/src/instructor_dashboard/analytics.coffee
View file @
a15c2d73
...
...
@@ -14,7 +14,7 @@ class ProfileDistributionWidget
title
:
@
title
feature
:
@
feature
endpoint
:
@
endpoint
template_html
=
$
(
"#profile-distribution-widget-template"
).
html
()
template_html
=
$
(
"#profile-distribution-widget-template"
).
text
()
@
$container
.
html
Mustache
.
render
template_html
,
template_params
reset_display
:
->
...
...
@@ -93,7 +93,7 @@ class ProfileDistributionWidget
class
GradeDistributionDisplay
constructor
:
({
@
$container
,
@
endpoint
})
->
template_params
=
{}
template_html
=
$
(
'#grade-distributions-widget-template'
).
html
()
template_html
=
$
(
'#grade-distributions-widget-template'
).
text
()
@
$container
.
html
Mustache
.
render
template_html
,
template_params
@
$problem_selector
=
@
$container
.
find
'.problem-selector'
...
...
lms/static/coffee/src/instructor_dashboard/instructor_dashboard.coffee
View file @
a15c2d73
...
...
@@ -61,10 +61,8 @@ class SafeWaiter
=>
@
waitFor_handlers
=
@
waitFor_handlers
.
filter
(
g
)
->
g
isnt
f
if
@
waitFor_handlers
.
length
is
0
plantTimeout
0
,
=>
@
fired
=
true
for
cb
in
@
after_handlers
cb
()
@
fired
=
true
@
after_handlers
.
map
(
cb
)
->
plantTimeout
0
,
cb
f
.
apply
this
,
arguments
...
...
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