]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/deletable.js
/reverse.html should be reverse.html to app works in subdirectory
[nominatim-ui.git] / src / assets / js / deletable.js
index 308b70c6dbf023a0f459626e10b1eb538d5ff262..1dc8f0ece7ac7b1df12f9be0d6d0607d75fb8ddf 100644 (file)
@@ -2,8 +2,7 @@
 // DELETABLE PAGE
 // *********************************************************
 
-jQuery(document).ready(function () {
-  if (!$('#deletable-page').length) { return; }
+function deletable_page_load() {
 
   var api_request_params = {
     format: 'json'
@@ -17,4 +16,4 @@ jQuery(document).ready(function () {
 
     update_data_date();
   });
-});
+}