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
c2c17c11
Commit
c2c17c11
authored
Aug 29, 2016
by
Jareer Ahsan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added classname to find menu links
parent
4b8490d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
lms/static/js/my_courses_dropdown.js
+2
-2
lms/templates/user_dropdown.html
+5
-5
No files found.
lms/static/js/my_courses_dropdown.js
View file @
c2c17c11
...
...
@@ -8,11 +8,11 @@
// define variables for code legibility
var
$dropdownMenuToggle
=
$
(
'.dropdown'
);
var
$dropdownMenu
=
$
(
'.dropdown-menu'
);
var
menuItems
=
$dropdownMenu
.
find
(
'
a
'
);
var
menuItems
=
$dropdownMenu
.
find
(
'
.dropdown-menuitem
'
);
// bind menu toggle click for later use
$dropdownMenuToggle
.
toggle
(
function
()
{
$dropdownMenu
.
addClass
(
'expanded'
).
find
(
'
a
'
).
first
()
$dropdownMenu
.
addClass
(
'expanded'
).
find
(
'
.dropdown-menuitem
'
).
first
()
.
focus
();
$dropdownMenuToggle
.
addClass
(
'active'
).
attr
(
'aria-expanded'
,
'true'
);
},
function
()
{
...
...
lms/templates/user_dropdown.html
View file @
c2c17c11
...
...
@@ -27,11 +27,11 @@ from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_
</button>
<ul
class=
"dropdown-menu list-divided is-hidden"
id=
"${_("
Usermenu
")}"
tabindex=
"-1"
>
<
%
block
name=
"navigation_dropdown_menu_links"
>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('dashboard')}"
class=
"action"
>
${_("Dashboard")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('learner_profile', kwargs={'username': user.username})}"
class=
"action"
>
${_("Profile")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('account_settings')}"
class=
"action"
>
${_("Account")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('dashboard')}"
class=
"action
dropdown-menuitem
"
>
${_("Dashboard")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('learner_profile', kwargs={'username': user.username})}"
class=
"action
dropdown-menuitem
"
>
${_("Profile")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('account_settings')}"
class=
"action
dropdown-menuitem
"
>
${_("Account")}
</a></li>
</
%
block>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
class=
"action"
>
${_("Sign Out")}
</a></li>
<li
class=
"dropdown-item item has-block-link"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
class=
"action
dropdown-menuitem
"
>
${_("Sign Out")}
</a></li>
</ul>
</div>
</div>
...
...
@@ -53,7 +53,7 @@ from openedx.core.djangoapps.user_api.accounts.image_helpers import get_profile_
<button
class=
"dropdown"
aria-expanded=
"false"
><span
class=
"sr"
>
${_("More options dropdown")}
</span><span
class=
"fa fa-sort-desc"
aria-hidden=
"true"
></span></button>
<ul
class=
"dropdown-menu"
aria-label=
"More Options"
role=
"menu"
>
${navigation_dropdown_menu_links()}
<li
class=
"item"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
>
${_("Sign Out")}
</a></li>
<li
class=
"item"
><a
href=
"${reverse('logout')}"
role=
"menuitem"
class=
"dropdown-menuitem"
>
${_("Sign Out")}
</a></li>
</ul>
</div>
</li>
...
...
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