Really remember code visibility
authorJoachim Breitner <mail@joachim-breitner.de>
Fri, 10 Sep 2010 15:00:45 +0000 (15:00 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Fri, 10 Sep 2010 15:00:45 +0000 (15:00 +0000)
b18n-combined-cgi.hs

index 05a4434..8b2d1aa 100644 (file)
@@ -429,6 +429,9 @@ jsCode = unlines
     , "   if ($('#showCode').val() == 'False')"
     , "     { $('#genCode').hide(); };"
     , "   $('#hideShow a').click(function () {"
+    , "      $('#showCode').val("
+    , "         $('#genCode').is(':visible') ? 'False' : 'True'"
+    , "      );"
     , "      $('#genCode').toggle('slow');"
     , "   })"
     , "})"