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
1d0e93a0
Commit
1d0e93a0
authored
Jun 07, 2016
by
Eric Fischer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12608 from edx/efischer/add_edx
Correct references to HtmlUtils in underscore files
parents
61a5e713
50d314d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
.jshintrc
+4
-4
lms/static/js/verify_student/views/incourse_reverify_view.js
+10
-8
No files found.
.jshintrc
View file @
1d0e93a0
...
...
@@ -109,10 +109,10 @@
// The parameter "predef" should remain empty for this configuration file
// to remain as general as possible.
"predef": [
//
jQuery global
s
"
jQuery", "$
",
// Underscore.js globals
//
JavaScript global librarie
s
"
Backbone
",
"jQuery",
"$",
"_",
// RequireJS globals
...
...
lms/static/js/verify_student/views/incourse_reverify_view.js
View file @
1d0e93a0
...
...
@@ -6,7 +6,7 @@
*/
var
edx
=
edx
||
{};
(
function
(
$
,
_
,
_s
,
Backbone
,
gettext
)
{
(
function
(
$
,
_
,
_s
,
Backbone
,
gettext
,
HtmlUtils
)
{
'use strict'
;
edx
.
verify_student
=
edx
.
verify_student
||
{};
...
...
@@ -40,13 +40,15 @@
},
render
:
function
()
{
var
renderedTemplate
=
_
.
template
(
$
(
this
.
templateId
).
html
())(
{
courseKey
:
this
.
courseKey
,
platformName
:
this
.
platformName
}
HtmlUtils
.
setHtml
(
this
.
el
,
HtmlUtils
.
template
(
$
(
this
.
templateId
).
html
())(
{
courseKey
:
this
.
courseKey
,
platformName
:
this
.
platformName
}
)
);
$
(
this
.
el
).
html
(
renderedTemplate
);
// Render the webcam view *after* the parent view
// so that the container div for the webcam
...
...
@@ -100,4 +102,4 @@
.
attr
(
'aria-disabled'
,
!
isEnabled
);
}
});
})(
jQuery
,
_
,
_
.
str
,
Backbone
,
gettext
);
})(
jQuery
,
_
,
_
.
str
,
Backbone
,
gettext
,
edx
.
HtmlUtils
);
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