aboutsummaryrefslogtreecommitdiff
path: root/website/resources/js
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-22 00:11:15 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2019-05-22 00:11:15 +0200
commit4af6e42b3bd5bc9e676e4ec8db3d2d48429d77a6 (patch)
tree8b4e0f6ab5b07210042701551c77f211f7e0ff31 /website/resources/js
parent8f69331ce8d120c3a0c8440c805aab0b5e458e6d (diff)
downloadlombok-4af6e42b3bd5bc9e676e4ec8db3d2d48429d77a6.tar.gz
lombok-4af6e42b3bd5bc9e676e4ec8db3d2d48429d77a6.tar.bz2
lombok-4af6e42b3bd5bc9e676e4ec8db3d2d48429d77a6.zip
[website] fixed history/ajax-load system to deal with anchor links
Diffstat (limited to 'website/resources/js')
-rw-r--r--website/resources/js/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js
index eaaf2df5..3d18b996 100644
--- a/website/resources/js/main.js
+++ b/website/resources/js/main.js
@@ -37,7 +37,7 @@
if (self.data("clc")) return;
var href = self.attr("href");
self.data("clc", true);
- if (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
+ if (!href || href.substr(0, 4) === "http" || href.substr(0, 1) === "#" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
var ext = href.substr(href.length - 4, 4);
if (ext === ".xml" || ext === ".jar" || ext === ".pdf") return;
self.on("click", function(evt) {