diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-09-11 21:25:14 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2017-10-26 00:09:15 +0200 |
commit | 70e7bc2f952394042133b7975d0e79477ac245f1 (patch) | |
tree | f96f17e47f5638ad61b06267fdd252073f051999 /website/resources/js/main.js | |
parent | 6fc0cd736c5def296ec7c963ba6e6ec5032d08c9 (diff) | |
download | lombok-70e7bc2f952394042133b7975d0e79477ac245f1.tar.gz lombok-70e7bc2f952394042133b7975d0e79477ac245f1.tar.bz2 lombok-70e7bc2f952394042133b7975d0e79477ac245f1.zip |
solved some bugs in our site.
Diffstat (limited to 'website/resources/js/main.js')
-rw-r--r-- | website/resources/js/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js index 35d0620d..99ae3b19 100644 --- a/website/resources/js/main.js +++ b/website/resources/js/main.js @@ -14,7 +14,7 @@ if (self.data("clc")) return; var href = self.attr("href"); self.data("clc", true); - if (!href || href.substr(0, 4) === "http") return; + if (!href || href.substr(0, 4) === "http" || href === "/api/") return; var ext = href.substr(href.length - 4, 4); if (ext === ".xml" || ext === ".jar") return; self.on("click", function(evt) { @@ -63,6 +63,8 @@ $("#main-section").replaceWith(newH); collapseMenu(); $("a").each(captureLinkClick); + }, error: function() { + window.location = u; } }); } |