glmenuCollapser.js 825 B

123456789101112131415161718192021222324252627
  1. function showhideGlobalMenu() {
  2. if ($("#sidebar").is(":hidden")) {
  3. //showing
  4. $("#sidebar").fadeIn("fast");
  5. $("#main").css("width", "77%");
  6. $(".breadcrumbs_container").css("background","url(skins/ubng/images/secondary_bar_shadow.png) no-repeat left top");
  7. $.cookie('globalMenuToggle', 'visible', {path: '/'});
  8. } else {
  9. //hiding
  10. $("#sidebar").fadeOut("fast");
  11. $("#main").css("width", "99%");
  12. $(".breadcrumbs_container").css("background","url()");
  13. $.cookie('globalMenuToggle', 'hidden', {path: '/'});
  14. }
  15. }
  16. $(document).ready(function () {
  17. if ($.cookie('globalMenuToggle') == 'hidden') {
  18. $("#sidebar").hide();
  19. $("#main").css("width", "99%");
  20. $(".breadcrumbs_container").css("background","url()");
  21. }
  22. });