sidebar_menu.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //$("#menu-toggle").click(function (e) {
  2. // e.preventDefault();
  3. // $("#wrapper").toggleClass("toggled");
  4. //});
  5. //$("#menu-toggle-2").click(function (e) {
  6. // e.preventDefault();
  7. // $("#wrapper").toggleClass("toggled-2");
  8. // $('#menu ul').hide();
  9. //});
  10. //function initMenu() {
  11. // $('#menu ul').hide();
  12. // $('#menu ul').children('.current').parent().show();
  13. // //$('#menu ul:first').show();
  14. // $('#menu li a').click(
  15. // function () {
  16. // var checkElement = $(this).next();
  17. // if ((checkElement.is('ul')) && (checkElement.is(':visible'))) {
  18. // return false;
  19. // }
  20. // if ((checkElement.is('ul')) && (!checkElement.is(':visible'))) {
  21. // $('#menu ul:visible').slideUp('normal');
  22. // checkElement.slideDown('normal');
  23. // return false;
  24. // }
  25. // }
  26. // );
  27. //}
  28. //function collapseMenu() {
  29. // $('#menu ul:visible').slideUp('normal');
  30. //}
  31. //$(document).ready(function () { initMenu(); });