diff --git a/kuma/static/js/wiki.js b/kuma/static/js/wiki.js index 58897f66965..ea5063703c8 100644 --- a/kuma/static/js/wiki.js +++ b/kuma/static/js/wiki.js @@ -7,43 +7,13 @@ $('.toggleable').mozTogglers(); /* - Toggle for quick links show/hide + Toggle for quick links with nested lists */ (function() { - // Set up the quick links for the toggler + // Set up the quick links with the toggler var $quickLinks = $('#quick-links'); setupTogglers($quickLinks.find('> ul > li, > ol > li')); $quickLinks.find('.toggleable').mozTogglers(); - - var $columnContainer = $('#wiki-column-container'); - var $quickLinksControl = $('#wiki-controls .quick-links'); - - var child = $('#wiki-left').get(0); - if(child) { - var parent = child.parentNode; - } - - // Quick Link toggles - $('#quick-links-toggle, #show-quick-links').on('click', function(e) { - e.preventDefault(); - $(child).toggleClass('column-closed'); - $columnContainer.toggleClass('wiki-left-closed'); - $quickLinksControl.toggleClass('hidden'); - - if($(child).hasClass('column-closed')) { - parent.removeChild(child); - } - else { - parent.appendChild(child); - } - - mdn.analytics.trackEvent({ - category: 'Wiki', - action: 'Sidebar', - label: (this.id === 'quick-links-toggle' ? 'Hide' : 'Show') - }); - - }); })(); /* diff --git a/kuma/static/styles/components/wiki/quick-links.styl b/kuma/static/styles/components/wiki/quick-links.styl index 6e88f4dedf1..f3e772a6812 100644 --- a/kuma/static/styles/components/wiki/quick-links.styl +++ b/kuma/static/styles/components/wiki/quick-links.styl @@ -95,8 +95,6 @@ $see-also-outdent = 6px; } /* items which can be clicked on to toggle */ -#show-quick-links, -#quick-links-toggle, .quick-links .toggleable > a { display: inline-block; bidi-style(padding-left, $grid-spacing, padding-right, 0); diff --git a/kuma/static/styles/components/wiki/structure.styl b/kuma/static/styles/components/wiki/structure.styl index 4deacf8c564..21b16539600 100644 --- a/kuma/static/styles/components/wiki/structure.styl +++ b/kuma/static/styles/components/wiki/structure.styl @@ -65,17 +65,13 @@ #wiki-column-container, #wiki-content { width: auto !important; } - - #quick-links-toggle, #wiki-controls { - display: none; - } } /* print styling */ @media print { /* hide sections not important to the article */ - #wiki-left, #wiki-right, #wiki-controls { + #wiki-left, #wiki-right { display: none; } } diff --git a/kuma/wiki/jinja2/wiki/document.html b/kuma/wiki/jinja2/wiki/document.html index 76be49d1ede..7187c454dc1 100644 --- a/kuma/wiki/jinja2/wiki/document.html +++ b/kuma/wiki/jinja2/wiki/document.html @@ -198,20 +198,6 @@

{{ document.title }}

- {% if show_left and not is_zone_root %} - -
-
- -
-
-
- -
- {% endif %} -
@@ -363,8 +349,6 @@

{{ _('Document Tags and Contributors') }}

{% if not is_zone_root %} - {{ _('Hide Sidebar') }} - {% if zone_subnav_html %} {{ get_document_subnav(zone_subnav_html) }}