Wed, 31 Dec 2014 07:53:36 +0100
Correct small whitespace inconsistency, lost while renaming variables.
michael@0 | 1 | var TOC = { |
michael@0 | 2 | load: function () { |
michael@0 | 3 | $('#toc_button').click(TOC.toggle); |
michael@0 | 4 | }, |
michael@0 | 5 | |
michael@0 | 6 | toggle: function () { |
michael@0 | 7 | if ($('#sphinxsidebar').toggle().is(':hidden')) { |
michael@0 | 8 | $('div.document').css('left', "0px"); |
michael@0 | 9 | $('toc_button').removeClass("open"); |
michael@0 | 10 | } else { |
michael@0 | 11 | $('div.document').css('left', "230px"); |
michael@0 | 12 | $('#toc_button').addClass("open"); |
michael@0 | 13 | } |
michael@0 | 14 | return $('#sphinxsidebar'); |
michael@0 | 15 | } |
michael@0 | 16 | }; |
michael@0 | 17 | |
michael@0 | 18 | $(document).ready(function () { |
michael@0 | 19 | TOC.load(); |
michael@0 | 20 | }); |