]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/assets/iD/iD.js
Update to iD v1.5.1
[rails.git] / vendor / assets / iD / iD.js
index a28af85618ad5d1fe07483674f51189c5f0f164d..cbda33878f441ae7e4e799aa652ccfd6fa03b21c 100644 (file)
@@ -16407,7 +16407,7 @@ window.iD = function () {
     return d3.rebind(context, dispatch, 'on');
 };
 
-iD.version = '1.5.0';
+iD.version = '1.5.1';
 
 (function() {
     var detected = {};
@@ -16443,7 +16443,7 @@ iD.version = '1.5.0';
 })();
 iD.countryCode  = function() {
     var countryCode = {},
-        endpoint = 'http://nominatim.openstreetmap.org/reverse?';
+        endpoint = 'https://nominatim.openstreetmap.org/reverse?';
 
     if (!iD.countryCode.cache) {
         iD.countryCode.cache = rbush();
@@ -30858,10 +30858,8 @@ iD.ui.preset.typeCombo = function(field) {
                 return o;
             }));
 
-            input.attr('placeholder', function() {
-                if (opts.length < 3) return '';
-                return opts.slice(0, 3).join(', ') + '...';
-            });
+            input.attr('placeholder', field.placeholder() ||
+                (opts.length < 3 ? '' : opts.slice(0, 3).join(', ') + '...'));
         }
     }
 
@@ -65632,8 +65630,7 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081],"
                     "toilets/disposal",
                     "operator",
                     "building_area",
-                    "fee",
-                    "access_simple"
+                    "access_toilets"
                 ],
                 "geometry": [
                     "point",
@@ -101333,6 +101330,18 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081],"
                 }
             },
             "access_simple": {
+                "key": "access",
+                "type": "combo",
+                "label": "Access",
+                "placeholder": "yes",
+                "options": [
+                    "permissive",
+                    "private",
+                    "customers",
+                    "no"
+                ]
+            },
+            "access_toilets": {
                 "key": "access",
                 "type": "combo",
                 "label": "Access",
@@ -114819,6 +114828,10 @@ iD.introGraph = '{"n185954700":{"id":"n185954700","loc":[-85.642244,41.939081],"
                     }
                 },
                 "access_simple": {
+                    "label": "Access",
+                    "placeholder": "yes"
+                },
+                "access_toilets": {
                     "label": "Access"
                 },
                 "address": {