diff --git a/package.json b/package.json index 94e1be9f..721e578c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "traveler-aps", - "version": "1.6.4", + "version": "1.6.5", "private": true, "scripts": { "start": "node app" @@ -8,7 +8,7 @@ "repository": { "type": "git", "url": "https://github.com/AdvancedPhotonSource/traveler.git", - "release": "APS-1.6.4" + "release": "APS-1.6.5" }, "dependencies": { "basic-auth": "1.0.0", diff --git a/public/javascripts/util.js b/public/javascripts/util.js index 9523baee..24fd9c30 100644 --- a/public/javascripts/util.js +++ b/public/javascripts/util.js @@ -54,28 +54,29 @@ function createSideNav() { } var parent = document.getElementById(nav_parent_id); + if (parent != null) { + parent.addEventListener('click', function() { + var header = document.getElementById(nav_parent_id); + var expansion = header.getElementsByTagName('span')[0]; - parent.addEventListener('click', function() { - var header = document.getElementById(nav_parent_id); - var expansion = header.getElementsByTagName('span')[0]; + var children = document.getElementsByClassName(nav_list_child_class); - var children = document.getElementsByClassName(nav_list_child_class); + for (i = 0; i < children.length; i++) { + var child = children[i]; - for (i = 0; i < children.length; i++) { - var child = children[i]; - - if (child.style.maxHeight) { - child.style.maxHeight = null; - expansion.innerHTML = '+'; - } else { - child.style.maxHeight = child.scrollHeight + 'px'; - expansion.innerHTML = '-'; + if (child.style.maxHeight) { + child.style.maxHeight = null; + expansion.innerHTML = '+'; + } else { + child.style.maxHeight = child.scrollHeight + 'px'; + expansion.innerHTML = '-'; + } } - } - }); + }); - // Expand by default. - parent.click(); + // Expand by default. + parent.click(); + } } function history(found) { diff --git a/public/release.txt b/public/release.txt index c7e2767f..7f88900e 100644 --- a/public/release.txt +++ b/public/release.txt @@ -1,3 +1,6 @@ +APS 1.6.5 +- Resolve issue where traveler will not functional unless it has sections defined. + APS 1.6.4 - Add API to download files from eTraveler system.