]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - dist/assets/js/nominatim-ui.js
dont intercept links in last-updated page section
[nominatim-ui.git] / dist / assets / js / nominatim-ui.js
index 4dd8d01ae8e4f840c0cb92b24d45b666c26e9111..4b1ba8a880e79b365b61b730ae8d9412d63d9f95 100644 (file)
@@ -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();