Commit: 7b860b42400937731e9d66b937b100828c1d8861

Author: Nate Abele | Date: 2010-03-08 23:23:10 -0500
Changing source code show/hide selectors to account for markup changes made by code highlighter.
diff --git a/views/layouts/default.html.php b/views/layouts/default.html.php index 7a52fbe..c0ab86f 100644 --- a/views/layouts/default.html.php +++ b/views/layouts/default.html.php @@ -55,12 +55,12 @@ $(this).html(converter.makeHtml($.trim($(this).text()))); }); - $('pre.source-code').hide(); + $('pre code').hide(); $('.source-toggle').bind('click', function() { - visible = $('pre.source-code').is(':visible'); + visible = $('pre code').is(':visible'); $(this).text((visible ? 'Show' : 'Hide') + ' source'); - visible ? $('pre.source-code').slideUp() : $('pre.source-code').slideDown(); + visible ? $('pre code').slideUp() : $('pre code').slideDown(); }); }); </script>