Skip to content

Commit

Permalink
version chooser directory
Browse files Browse the repository at this point in the history
  • Loading branch information
oraNod authored and karesti committed Nov 13, 2020
1 parent 9eb9615 commit 49fe7f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions documentation/src/main/asciidoc/js/js.js
Expand Up @@ -2,7 +2,7 @@ $(document).ready(function() {
var prefix = "/docs/"
var path = document.location.pathname;
var version = path.substring(prefix.length, path.indexOf("/", prefix.length));
$.ajax({type: 'GET', dataType: 'xml', url: '../../versions.xml',
$.ajax({type: 'GET', dataType: 'xml', url: '/docs/versions.xml',
success: function(xml) {
$('#toctitle').before('<select id="vchooser"></select>');
$('#vchooser').append('<option>Choose version</option>');
Expand Down Expand Up @@ -39,4 +39,3 @@ $(document).ready(function() {
$('#toctreeexpand').click(function() { $('#toctree').jstree('open_all'); });
$('#toctreecollapse').click(function() { $('#toctree').jstree('close_all'); });
});

0 comments on commit 49fe7f8

Please sign in to comment.