Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c725499d
Commit
c725499d
authored
Sep 13, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Sep 13, 2015
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Fix responsive main menu when in dropdowns mode"
parents
53d484d2
c5172289
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
htdocs/js/dropdown-nav.js
htdocs/js/dropdown-nav.js
+4
-3
htdocs/theme/raw/templates/header/navigation.tpl
htdocs/theme/raw/templates/header/navigation.tpl
+1
-1
No files found.
htdocs/js/dropdown-nav.js
View file @
c725499d
...
...
@@ -148,10 +148,11 @@ jQuery(document).ready(function($) {
close_open_menu
();
}
});
menu
.
click
(
function
(
e
)
{
e
.
stopPropagation
();
$
(
document
).
on
(
'
click
'
,
function
(
event
)
{
if
(
!
$
(
event
.
target
).
closest
(
'
.has-dropdown
'
).
length
)
{
close_open_menu
();
}
});
$
(
document
).
click
(
close_open_menu
);
// Helper to close any open dropdowns
function
close_open_menu
()
{
...
...
htdocs/theme/raw/templates/header/navigation.tpl
View file @
c725499d
...
...
@@ -40,7 +40,7 @@
</button>
{/
if
}
{
if
$item.submenu
}
<ul
id=
"childmenu-
{
$dwoo.foreach.menu.index
}
"
class=
"
{
if
$DROPDOWNMENU
}
has-dropdown
{
else
}
hidden-md hidden-lg hidden-sm
{
if
$item.selected
}
in
{/
if
}
{/
if
}
collapse child-nav"
role=
"menu"
>
<ul
id=
"childmenu-
{
$dwoo.foreach.menu.index
}
"
class=
"
{
if
$DROPDOWNMENU
}
has-dropdown
{
else
}
hidden-md hidden-lg hidden-sm
{/
if
}
{
if
$item.selected
}
in
{/
if
}
collapse child-nav"
role=
"menu"
>
{
strip
}
{
foreach
from
=
$item.submenu
item
=
subitem
}
<li
class=
"
{
if
$subitem.selected
}
active
{/
if
}{
if
$subitem.submenu
}
has-sub
{/
if
}
"
>
...
...
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