mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 16:15:16 +00:00
[website] fixed history/ajax-load system to deal with anchor links
This commit is contained in:
1 parent
8f69331ce8
commit
4af6e42b3b
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user