From b5bd58b2b6d9179f31ae320e06169832e1df98c9 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 12 Dec 2010 21:53:17 -0500 Subject: [PATCH] fixing some site bugs. --- documentation/css/docs.css | 1 - documentation/index.html.erb | 18 ++++++++---------- index.html | 18 ++++++++---------- 3 files changed, 16 insertions(+), 21 deletions(-) diff --git a/documentation/css/docs.css b/documentation/css/docs.css index ea16623b..b7891975 100644 --- a/documentation/css/docs.css +++ b/documentation/css/docs.css @@ -315,7 +315,6 @@ div.code { #repl_results { text-transform: none; overflow-y: auto; - width: 370px; left: 50%; border-left-color: #555; } diff --git a/documentation/index.html.erb b/documentation/index.html.erb index 3f09196e..0d86b252 100644 --- a/documentation/index.html.erb +++ b/documentation/index.html.erb @@ -1510,29 +1510,27 @@ coffee --bare --print --stdio window.loadConsole = (coffee) -> $('#repl_source').val coffee compileSource() - $('.navigation.try').addClass 'active' - - currentNav = null + $('.navigation.try').addClass('active') + false # Helper to hide the menus. closeMenus = -> - if currentNav - currentNav.removeClass 'active' - currentNav = null + $('.navigation.active').removeClass 'active' # Bind navigation buttons to open the menus. $('.navigation').click (e) -> return if e.target.tagName.toLowerCase() is 'a' return false if $(e.target).closest('.repl_wrapper').length - if this is (currentNav and currentNav[0]) + if $(this).hasClass('active') closeMenus() else closeMenus() - currentNav = $(this) - currentNav.addClass 'active' + $(this).addClass 'active' false - $(document.body).click -> closeMenus() + $(document.body).click (e) -> + return false if $(e.target).hasClass('minibutton') + closeMenus() $('#open_webchat').click -> $(this).replaceWith $('') diff --git a/index.html b/index.html index 2487e5d2..744ab7f2 100644 --- a/index.html +++ b/index.html @@ -2396,29 +2396,27 @@ task('build:parser')