]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Finally fixed the Inky/HTML toggle docs-redesign-nick
authorNick Wittwer <nick.wittwer@me.com>
Tue, 23 Aug 2016 11:31:14 +0000 (04:31 -0700)
committerNick Wittwer <nick.wittwer@me.com>
Tue, 23 Aug 2016 11:31:14 +0000 (04:31 -0700)
docs/assets/js/codeSample.js

index 734ae2626e9f774c2379c174e0263a4d9dbd4a91..ce377e9836da94dd0688e89608a1c56fd3d38312 100644 (file)
@@ -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');
+  }
 });
 
 }();