X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/56e96d856c7fc168b37cf9d26a58a6da8094cedb..a3519348c6c2b461dd0bbaeede01ecca1939090d:/app/assets/javascripts/user.js diff --git a/app/assets/javascripts/user.js b/app/assets/javascripts/user.js index 44872a78c..bdf044305 100644 --- a/app/assets/javascripts/user.js +++ b/app/assets/javascripts/user.js @@ -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();