1. Mike Cannon-Brookes
  2. confluence-projector-mode-extension

Commits

Mike Cannon-Brookes  committed 9e3b04c

Animate the disappearance of the blog sidebar.

  • Participants
  • Parent commits bac7060
  • Branches default

Comments (0)

Files changed (1)

File js/projector-mode/main.js

View file
  • Ignore whitespace
 		jQuery("#navigation").hide();
 		jQuery(".logo").animate( { width: "hide", paddingLeft: "hide", paddingRight: "hide", marginLeft: "hide", marginRight: "hide" }, 800);
 		jQuery("#personal-info-sidebar").animate( { width: "hide", paddingLeft: "hide", paddingRight: "hide", marginLeft: "hide", marginRight: "hide" }, 800);
+		
+		if (jQuery("#blog-sidebar")) {
+			jQuery("#blog-sidebar").animate( { width: "hide", paddingLeft: "hide", paddingRight: "hide", marginLeft: "hide", marginRight: "hide" }, 800,
+			function() { jQuery("#main").removeClass("has-blog-sidebar")} );
+		}
+		
 		jQuery(".page-metadata, #footer, #labels-section, #children-section, #comments-section").fadeOut(800);
 
 		// hide the sidebar in the doc theme better (re-use JS?)