mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 15:01:03 +00:00
Merge pull request #833 from codysoyland/versioned-doc-link
Modify WebUI documentation link to open docs for the current version.
This commit is contained in:
commit
3677154000
1 changed files with 6 additions and 1 deletions
|
|
@ -253,7 +253,12 @@ function populate_version() {
|
|||
var node = document.getElementById('server-version')
|
||||
|
||||
xhr.onload = function() {
|
||||
version = JSON.parse(xhr.responseText)['version']
|
||||
var version = JSON.parse(xhr.responseText)['version']
|
||||
var version_major_minor = /(v\d+\.\d+)/.exec(version)[0]
|
||||
var doc_link = document.getElementById('nav-documentation')
|
||||
doc_link.onclick = function() {
|
||||
window.open('https://www.pilosa.com/docs/' + version_major_minor + '/introduction/')
|
||||
}
|
||||
node.innerHTML = version
|
||||
}
|
||||
xhr.send(null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue