Skip to content

Instantly share code, notes, and snippets.

@mneuhaus
Created June 11, 2013 11:35
Show Gist options
  • Save mneuhaus/5756195 to your computer and use it in GitHub Desktop.
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.
--- 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