Skip to content

Commit 24c1479

Browse files
committed
fix missing variable
1 parent 7a4c0a4 commit 24c1479

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/_static/javascripts/version_dropdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function assign_href( a ) {
1+
function assign_href( a, url, path ) {
22
var http = new XMLHttpRequest();
33
http.open('GET', url + "/" + path );
44
http.onreadystatechange = function() {
@@ -37,7 +37,7 @@ function add_version_dropdown(json_loc, target_loc, text) {
3737
var a = document.createElement("a");
3838
a.innerHTML = key;
3939
a.title = key;
40-
assign_href( a );
40+
assign_href( a, target_loc + versions[key], path );
4141
content.appendChild(a);
4242
}
4343
}

0 commit comments

Comments
 (0)