Created
June 11, 2013 11:35
-
-
Save mneuhaus/5756195 to your computer and use it in GitHub Desktop.
the parent class gets currently attached even if the submenu isn't configured to be shown.
This breaks the menu on ipads, because the links with the parent class get rewritten to
the void(0) function.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/helper.php | |
+++ b/helper.php | |
@@ -149,7 +149,7 @@ | |
$item->classe .= ' deeper'; | |
} | |
- if ($item->parent) { | |
+ if ($item->parent && $item->level != $end) { | |
if ($params->get('layout', 'default') != '_:flatlist' && $item->level != $end) | |
$item->classe .= ' parent'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment