1st level always expanded

Permalink Browser Info Environment
Hi Chris,

First time i've used one of your addon :-) pretty decent so far.

I'm trying to figure out how the menu can always be expanded? Any ideas?

Thanks
-Paul

Type: Discussion
Status: Resolved
cytringan
View Replies:
ChrisWatterston replied on at Permalink Reply
ChrisWatterston
Hi Paul,

Not exactly sure what you're trying to achieve?

If your trying to always display the sub menu you can do this by commenting out the jQuery file content, called 'am_menu.js'. Like this by including '/*' at the start of the file, and '*/' at the end. Like this....

/*
$(document).ready(function() {initMenu();});
function initMenu() {
   // Accordion functionality
   $('#am_menu ul').hide();
   $('#am_menu li a').click(function() { // \\ Change .hover to .click if you want the menu to expand on click and not hover // \\
      $('#am_menu li ul li ul').show().addClass('am_deep_menu');
      var checkElement = $(this).next();
      if ((checkElement.is('#am_menu ul')) && (!checkElement.is(':visible'))) {
         $('#am_menu ul:visible').slideUp('slow');
         checkElement.slideDown('slow');
         return false;
      } else {
         $(this).unbind('click');
      }


Cheers,
Chris

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.