From 70e7bc2f952394042133b7975d0e79477ac245f1 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 11 Sep 2017 21:25:14 +0200 Subject: solved some bugs in our site. --- website/resources/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'website/resources/js/main.js') 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; } }); } -- cgit