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