You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by al...@apache.org on 2016/11/21 09:35:57 UTC

[2/3] incubator-beam-site git commit: Regenerate Website

Regenerate Website


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/commit/3f72e67a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/tree/3f72e67a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam-site/diff/3f72e67a

Branch: refs/heads/asf-site
Commit: 3f72e67ac42e1fd094472c42bebe03520c8c98e4
Parents: b3cc5a2
Author: Aljoscha Krettek <al...@gmail.com>
Authored: Mon Nov 21 10:35:15 2016 +0100
Committer: Aljoscha Krettek <al...@gmail.com>
Committed: Mon Nov 21 10:35:15 2016 +0100

----------------------------------------------------------------------
 content/js/language-switch.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam-site/blob/3f72e67a/content/js/language-switch.js
----------------------------------------------------------------------
diff --git a/content/js/language-switch.js b/content/js/language-switch.js
index 2c634fe..653cbcb 100644
--- a/content/js/language-switch.js
+++ b/content/js/language-switch.js
@@ -79,7 +79,6 @@ $(document).ready(function() {
             },
             "toggle": function() {
                 var pref=localStorage.getItem(this.dbKey) || this.default;
-
                 // Adjusting active elements in navigation header.
                 $("." + this.wrapper + " li").removeClass("active").each(function() {
                     if ($(this).data("type") === pref) {
@@ -88,7 +87,7 @@ $(document).ready(function() {
                 });
 
                 // Swapping visibility of code blocks.
-                $("[class^=" + prefix).hide();
+                $(this.selector).hide();
                 $("." + pref).show();
             },
             "render": function(wrapper) {
@@ -101,4 +100,4 @@ $(document).ready(function() {
 
     Switcher({"class-prefix":"language","default":"java"}).render();
     Switcher({"class-prefix":"runner","default":"direct"}).render();
-});
\ No newline at end of file
+});