From: Nick Wittwer Date: Tue, 23 Aug 2016 11:31:14 +0000 (-0700) Subject: Finally fixed the Inky/HTML toggle X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fdocs-redesign-nick;p=thirdparty%2Ffoundation%2Ffoundation-emails.git Finally fixed the Inky/HTML toggle --- diff --git a/docs/assets/js/codeSample.js b/docs/assets/js/codeSample.js index 734ae262..ce377e98 100644 --- a/docs/assets/js/codeSample.js +++ b/docs/assets/js/codeSample.js @@ -8,13 +8,13 @@ $toggleButtons.click(function(e) { $('body').toggleClass('is-inky-enabled'); if ($('body').hasClass('is-inky-enabled')) { - $currentText.text('Inky'); - $toggleButtons.text('Switch to HTML'); - } - else { $currentText.text('HTML'); $toggleButtons.text('Switch to Inky'); } + else { + $currentText.text('Inky'); + $toggleButtons.text('Switch to HTML'); + } }); }();