Skip to content

Commit ef86963

Browse files
Fixing JS error/Docker 1.13>17.03
1 parent 5e656ce commit ef86963

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

_includes/global-header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ <h1>Docker's Documentation</h1>
8989
<div class="ctrl-right">
9090
<div class="btn-group">
9191
<button type="button" class="btn btn-default dropdown-btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
92-
Docker 17.03 (current)<span class="caret"></span>
92+
Docker 17.03 (current) <span class="caret"></span>
9393
</button>
9494
<ul class="dropdown-menu">
9595
{% for item in site.data.docsarchive.docker-compose %}

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<a href="javascript:void(0)" id="menu-toggle"><i class="fa fa-indent" aria-hidden="true"></i></a>
3333
<div class="btn-group">
3434
<button type="button" class="btn btn-default dropdown-btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
35-
Docker 1.13 <span class="caret"></span>
35+
Docker 17.03 (current) <span class="caret"></span>
3636
</button>
3737
<ul class="dropdown-menu">
3838
{% for item in site.data.docsarchive.docker-compose %}

_layouts/docs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ <h1>{{ page.title }}</h1>{% endif %} {% if page.advisory %}
168168
<script language="javascript">
169169
// ensure that the left nav visibly displays the current topic
170170
var current = document.getElementsByClassName("active currentPage");
171-
if (current) {
171+
if (current[0]) {
172172
var container = document.getElementsByClassName("sidebar");
173-
if (container) {
173+
if (container[0]) {
174174
current[0].scrollIntoView(true);
175175
container[0].scrollTop -= 150;
176176
}

0 commit comments

Comments
 (0)