diff --git a/_layouts/docwithnav.html b/_layouts/docwithnav.html
index 4ee472b963..2c4ffe9c45 100755
--- a/_layouts/docwithnav.html
+++ b/_layouts/docwithnav.html
@@ -114,7 +114,7 @@
Slack
stackoverflow
Mailing List
-
+
© 2016 Kubernetes
diff --git a/_layouts/headerfooter.html b/_layouts/headerfooter.html
index 4c3d258709..be86647c83 100644
--- a/_layouts/headerfooter.html
+++ b/_layouts/headerfooter.html
@@ -77,7 +77,7 @@
Slack
stackoverflow
Mailing List
-
+
© {{ 'now' | date: "%Y" }} Kubernetes
diff --git a/_sass/_base.sass b/_sass/_base.sass
index 95c3e39472..9635d4f1d3 100644
--- a/_sass/_base.sass
+++ b/_sass/_base.sass
@@ -727,6 +727,7 @@ section
th, td
padding: 6px
text-align: left
+ margin: 0
td
font-size: 0.85em
@@ -782,6 +783,9 @@ html.search #docsContent
#editPageButton
display: none
+ table
+ border: 0
+
td
padding: 0
diff --git a/js/script.js b/js/script.js
index d92f4e4167..74067efefe 100755
--- a/js/script.js
+++ b/js/script.js
@@ -150,10 +150,11 @@ var kub = (function () {
}
function handleKeystrokes(e) {
+ console.log(e.currentTarget);
switch (e.which) {
case 13: {
- if (e.currentTarget === wishField) {
- submitWish(wishField);
+ if (e.currentTarget === wishField[0]) {
+ submitWish(wishField[0]);
}
break;
}
@@ -439,4 +440,4 @@ var pushmenu = (function(){
};
})();
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIs+ALWJhc2VDb21wb25lbnRzLmpzIiwic2NyaXB0LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FDTkE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQ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