]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/user.js
Add terminating semicolon to overpass query
[rails.git] / app / assets / javascripts / user.js
index 44872a78c6f12c2432df5fa40f268406b0109c30..bdf0443056329df566e07fbc880dd8ea3153b79c 100644 (file)
@@ -28,6 +28,7 @@ $(document).ready(function () {
       .removeClass('leaflet-control-locate leaflet-bar')
       .addClass('control-locate')
       .children("a")
+      .attr('href', '#')
       .removeClass('leaflet-bar-part leaflet-bar-part-single')
       .addClass('control-button');
 
@@ -84,6 +85,10 @@ $(document).ready(function () {
 
   $("select#user_auth_provider").on("change", updateAuthUID);
 
+  $("input#user_image").on("change", function () {
+    $("#image_action_new").prop("checked", true);
+  });
+
   function enableAuth() {
     $("#auth_prompt").hide();
     $("#auth_field").show();