zentaobiz.js 796 B

123456789101112131415161718192021222324252627282930313233
  1. $(function()
  2. {
  3. /* The display of the adjusting sidebarHeader is synchronized with the sidebar. */
  4. $(".sidebar-toggle").click(function()
  5. {
  6. $("#sidebarHeader").toggle("fast");
  7. });
  8. if($("main").is(".hide-sidebar")) $("#sidebarHeader").hide();
  9. if(groupID != 0) $('#module' + groupID).closest('li').addClass('active');
  10. $('.btn-design').click(function()
  11. {
  12. if($(this).hasClass('disabled')) return false;
  13. result = confirm(confirmDesign);
  14. if(!result) return false;
  15. });
  16. });
  17. /**
  18. * Locate page.
  19. *
  20. * @param string module
  21. * @param string method
  22. * @param string params
  23. * @access public
  24. * @return void
  25. */
  26. function locate(module, method, params)
  27. {
  28. var link = createLink(module, method, params);
  29. window.location.href = link;
  30. }