]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/assets/js/polygons.js
all templates in one document, deal with window.history change
[nominatim-ui.git] / src / assets / js / polygons.js
index 3ccaf1132b88c93b73b87cb1f3fa2dd5f04eefc0..94706491df03b4e8223a5bf4257627139ffd333d 100644 (file)
@@ -2,9 +2,8 @@
 // BROKEN POLYGON PAGE
 // *********************************************************
 
-jQuery(document).ready(function () {
-  if (!$('#polygons-page').length) { return; }
-
+function polygons_page_load() {
+  //
   var api_request_params = {
     format: 'json'
   };
@@ -17,4 +16,4 @@ jQuery(document).ready(function () {
 
     update_data_date();
   });
-});
+}