/administrator/templates/khepri/js/animat_menu.js

https://bitbucket.org/StasPiv/playzone · JavaScript · 29 lines · 24 code · 5 blank · 0 comment · 0 complexity · 04fd52ee22e9a5fd7bbdb56908a7a959 MD5 · raw file

  1. jQuery(document).ready(function(){
  2. jQuery('.hide_menu').click(function(){
  3. jQuery(this).parent().slideUp();
  4. jQuery('.show_menu').fadeIn();
  5. jQuery.ajax({
  6. type: "POST",
  7. url: "./index.php?option=com_uplab&action=main&task=toggle_menu",
  8. dataType : "html",
  9. data : 'todo=0',
  10. success: function(val){ }
  11. });
  12. });
  13. jQuery('.show_menu').click(function(){
  14. jQuery('.main_menu_top').slideDown();
  15. jQuery(this).fadeOut();
  16. jQuery.ajax({
  17. type: "POST",
  18. url: "./index.php?option=com_uplab&action=main&task=toggle_menu",
  19. dataType : "html",
  20. data : 'todo=1',
  21. success: function(val){ }
  22. });
  23. });
  24. });