Skip to content

Commit ee7bdb8

Browse files
committed
Enable the options menu
1 parent 19ccc5f commit ee7bdb8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/reference/static/js/java.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,15 @@ jQuery(document).ready(function(){
99
$('.gradle').removeClass('hidden');
1010
}
1111
});
12+
13+
jQuery.getJSON(DOCUMENTATION_OPTIONS.URL_ROOT + "/../versions.json").done(function( data ) {
14+
15+
$.each(data, function( index, value ) {
16+
var versionUrl = "//mongodb.github.io/mongo-java-driver/" + value.version;
17+
var liClass = DOCUMENTATION_OPTIONS.VERSION == value.version ? ' class="active"' : '';
18+
jQuery("#optionsVersionsMenu").append('<li'+liClass+'><a href="'+ versionUrl +'" data-path="manual">'+ value.version +'</a></li>');
19+
});
20+
21+
jQuery("#optionsVersionsPopup").removeClass("hidden");
22+
});
1223
});

0 commit comments

Comments
 (0)