diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-06-12 22:29:51 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-06-13 00:15:32 +0200 |
commit | 3cf73930c3ba0c6da415ec487692e7f0cb5cfb3d (patch) | |
tree | 0246b35c3600eb2b5f384ab9334c3a05bb37707d /website/resources/js/main.js | |
parent | 9488c1c248569d91fa74ed9358baba7f175f02fa (diff) | |
download | lombok-3cf73930c3ba0c6da415ec487692e7f0cb5cfb3d.tar.gz lombok-3cf73930c3ba0c6da415ec487692e7f0cb5cfb3d.tar.bz2 lombok-3cf73930c3ba0c6da415ec487692e7f0cb5cfb3d.zip |
Final touches to the website (very minor typos etc update)
Diffstat (limited to 'website/resources/js/main.js')
-rw-r--r-- | website/resources/js/main.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js index ebeeab9d..35d0620d 100644 --- a/website/resources/js/main.js +++ b/website/resources/js/main.js @@ -14,7 +14,9 @@ if (self.data("clc")) return; var href = self.attr("href"); self.data("clc", true); - if (!href || href.substr(0, 4) === "http" || href.substr(href.length - 4, 4) === ".xml") return; + if (!href || href.substr(0, 4) === "http") return; + var ext = href.substr(href.length - 4, 4); + if (ext === ".xml" || ext === ".jar") return; self.on("click", function(evt) { evt.preventDefault(); var key = toKey(window.location.pathname); @@ -27,7 +29,7 @@ } function collapseMenu() { - if ($(".navbar-collapse").is(".in")) $(".navbar-toggle").click() + if ($(".navbar-collapse").is(".in")) $(".navbar-toggle").click(); } function ajaxFeaturePages() { |