Permalink
Browse files

fix(profile): allow admin menu items to be toggled

Menu items in the admin section of the user profile menu could not be
registered as being toggleable, for use of ajax actions

fixes: #9239
  • Loading branch information...
jeabakker committed Oct 12, 2016
1 parent 5ce6290 commit ba20ce42168edeb72e67694cf88881d558470539
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/profile/views/default/profile/owner_block.php
@@ -43,13 +43,13 @@
$admin_links = '<ul class="profile-admin-menu-wrapper">';
$admin_links .= "<li><a rel=\"toggle\" href=\"#profile-menu-admin\">$text&hellip;</a>";
$admin_links .= '<ul class="profile-admin-menu" id="profile-menu-admin">';
$admin_links .= '<ul class="elgg-menu profile-admin-menu" id="profile-menu-admin">';
foreach ($admin as $menu_item) {
$admin_links .= elgg_view('navigation/menu/elements/item', array('item' => $menu_item));
}
$admin_links .= '</ul>';
$admin_links .= '</li>';
$admin_links .= '</ul>';
$admin_links .= '</ul>';
}
// content links

0 comments on commit ba20ce4

Please sign in to comment.