From a14e894bfc075935757f10ae2be4df3c4e17bdbd Mon Sep 17 00:00:00 2001 From: marc tobias Date: Tue, 1 Sep 2020 17:25:15 +0200 Subject: [PATCH] dont intercept links in last-updated page section --- dist/assets/js/nominatim-ui.js | 2 +- src/assets/js/controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/assets/js/nominatim-ui.js b/dist/assets/js/nominatim-ui.js index 4dd8d01..4b1ba8a 100644 --- a/dist/assets/js/nominatim-ui.js +++ b/dist/assets/js/nominatim-ui.js @@ -843,7 +843,7 @@ jQuery(document).ready(function () { $(document).on('click', 'a', function (e) { var target_url = $(this).attr('href'); if (!is_relative_url(target_url)) return; - if ($(this).parents('#last-updated')) return; + if ($(this).parents('#last-updated').length !== 0) return; e.preventDefault(); e.stopPropagation(); diff --git a/src/assets/js/controller.js b/src/assets/js/controller.js index 9975ba7..a9cb80e 100644 --- a/src/assets/js/controller.js +++ b/src/assets/js/controller.js @@ -63,7 +63,7 @@ jQuery(document).ready(function () { $(document).on('click', 'a', function (e) { var target_url = $(this).attr('href'); if (!is_relative_url(target_url)) return; - if ($(this).parents('#last-updated')) return; + if ($(this).parents('#last-updated').length !== 0) return; e.preventDefault(); e.stopPropagation(); -- 2.39.5