Skip to content

Instantly share code, notes, and snippets.

@tefra
Created August 31, 2013 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tefra/6397468 to your computer and use it in GitHub Desktop.
Save tefra/6397468 to your computer and use it in GitHub Desktop.
$("#demo2").navgoco({accordion: true});
$("#demo2").find("li:not(:has(ul)) > a").click(function(e) {
$(this).parent().parents('ul').each(function() {
idx = $(this).attr('data-index');
if (!idx) {
return false;
}
$("#demo2").navgoco('toggle', true, idx);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment