]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index.js
Always use http to talk to josm
[rails.git] / app / assets / javascripts / index.js
index 2c7d70e11ad99603056546396c017cc7e1711ddc..66a24f16aa01b6ba37aa951c3a21ce493e7a6d17 100644 (file)
@@ -255,12 +255,7 @@ $(document).ready(function () {
           bottom: bbox.getSouth() - 0.0001
         };
 
-    if (location.protocol === "http" ||
-        bowser.check({ chrome: "53", firefox: "55" })) {
-      url = "http://127.0.0.1:8111/load_and_zoom?";
-    } else {
-      url = "https://127.0.0.1:8112/load_and_zoom?";
-    }
+    url = "http://127.0.0.1:8111/load_and_zoom?";
 
     if (object) query.select = object.type + object.id;
 
@@ -347,6 +342,10 @@ $(document).ready(function () {
           });
         }
       });
+
+      $(".colour-preview-box").each(function () {
+        $(this).css("background-color", $(this).data("colour"));
+      });
     }
 
     page.unload = function () {