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
f94e665e
Commit
f94e665e
authored
Aug 24, 2016
by
Chris Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing inline JS for CCX navigation
parent
9af50a75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lms/templates/ccx/coach_dashboard.html
+4
-4
No files found.
lms/templates/ccx/coach_dashboard.html
View file @
f94e665e
...
...
@@ -89,9 +89,9 @@ from openedx.core.djangolib.js_utils import (
<script>
function
setup_tabs
()
{
$
(
".instructor-nav
a
"
).
on
(
"click"
,
function
(
event
)
{
$
(
".instructor-nav
.btn-link
"
).
on
(
"click"
,
function
(
event
)
{
event
.
preventDefault
();
$
(
".instructor-nav
a
"
).
removeClass
(
"active-section"
);
$
(
".instructor-nav
.btn-link
"
).
removeClass
(
"active-section"
);
var
section_sel
=
"#"
+
$
(
this
).
attr
(
"data-section"
);
$
(
"section.idash-section"
).
hide
();
$
(
section_sel
).
show
();
...
...
@@ -101,12 +101,12 @@ from openedx.core.djangolib.js_utils import (
var
url
=
document
.
URL
,
hashbang
=
url
.
indexOf
(
'#!'
);
if
(
hashbang
!=
-
1
)
{
var
selector
=
'.instructor-nav
a
[data-section='
+
var
selector
=
'.instructor-nav [data-section='
+
url
.
substr
(
hashbang
+
2
)
+
']'
;
$
(
selector
).
click
();
}
else
{
$
(
".instructor-nav
a
"
).
first
().
click
();
$
(
".instructor-nav
.btn-link
"
).
first
().
click
();
}
}
...
...
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