Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/third_party/wiredtiger/src/docs/style/header-web.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@
},false);
</script>

<select id="version_select" onchange="window.location=window.location.href.replace('$projectbrief',this.value);">
<script type="text/javascript">
function updateLocation(value) {
var allowedValues = ["$projectbrief", "stable", "develop", "mongodb-3.2", "mongodb-3.4"];
if (allowedValues.includes(value)) {
window.location = window.location.href.replace('$projectbrief', value);
}
}
</script>

<select id="version_select" onchange="updateLocation(this.value);">
<option name="$projectbrief" value="$projectbrief">$projectnumber</option>
<option name="stable" value="stable">Latest stable release</option>
<option name="develop" value="develop">Current develop branch</option>
Expand Down