Skip to content

Commit

Permalink
Merge pull request #1044 from PiwikPRO/17.7
Browse files Browse the repository at this point in the history
17.7
  • Loading branch information
kororokke authored Aug 1, 2023
2 parents 7b784ff + dd08cfb commit b7bcb9d
Show file tree
Hide file tree
Showing 10 changed files with 2,600 additions and 22 deletions.
6 changes: 3 additions & 3 deletions _static/js/versionlinks.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//CHANGE VERSION BEFORE NEW RELEASE
if(document.location.pathname.indexOf('/en/latest') === 0) {
document.querySelector('.rst-current-version').innerHTML = document.querySelector('.rst-current-version').innerHTML.replace('v: latest', 'v: latest (17.6)')
document.querySelector('.rst-current-version').innerHTML = document.querySelector('.rst-current-version').innerHTML.replace('v: latest', 'v: latest (17.7)')
}

if(document.querySelector('.injected')){
document.querySelector('.injected > dl:nth-child(1) > dd:nth-child(2) > a').innerText = 'latest (17.6)';
document.querySelector('.injected > dl:nth-child(1) > dd:nth-child(2) > a').innerText = 'latest (17.7)';
} else {
let observer = new MutationObserver(() => {
if (document.querySelector('.injected')) {
document.querySelector('.injected > dl:nth-child(1) > dd:nth-child(2) > a').innerText = 'latest (17.6)';
document.querySelector('.injected > dl:nth-child(1) > dd:nth-child(2) > a').innerText = 'latest (17.7)';
observer.disconnect();
}
});
Expand Down
Loading

0 comments on commit b7bcb9d

Please sign in to comment.