From: marc tobias Date: Tue, 1 Sep 2020 15:25:15 +0000 (+0200) Subject: dont intercept links in last-updated page section X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/a14e894bfc075935757f10ae2be4df3c4e17bdbd dont intercept links in last-updated page section --- 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();