Skip to content

Commit

Permalink
[DOC] Update version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed Aug 28, 2024
1 parent 6e748f3 commit 3014c4e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
10 changes: 5 additions & 5 deletions test/documentation/version.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

/* SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
SPDX-License-Identifier: BSD-3-Clause
*/
/* Jongkyu Kim ([email protected]), 2016.01.12
Adaptations by Enrico Seiler ([email protected]), 2020 */

Expand Down Expand Up @@ -47,7 +47,7 @@ function addVersionSelection(arr)
version_select.addEventListener("change", function(){changeVersion(this.id);}, false);

// current selection is..
cur_sel = window.location.pathname.split("/")[2];
cur_sel = window.location.pathname.split("/").at(-2);

for(i=0; i < arr.length; ++i)
{
Expand Down
14 changes: 9 additions & 5 deletions test/documentation/version.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

// SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

/*
SPDX-FileCopyrightText: 2006-2024 Knut Reinert & Freie Universität Berlin
SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
SPDX-License-Identifier: BSD-3-Clause
*/
/* Jongkyu Kim([email protected]), 2016.01.12
Adaptations by Enrico Seiler ([email protected]), 2020 */
$LOCALDIR = "../";
Expand All @@ -12,6 +12,10 @@
$list = array();
foreach( $files as $file )
{
if( !is_dir("$LOCALDIR/$file") ) // Skip files
continue;
if( strpos($file, "hidden_") !== FALSE ) // Skip directories starting with "hidden_"
continue;
if( $file[0] == "." ) // Skip current directory
continue;

Expand Down

0 comments on commit 3014c4e

Please sign in to comment.