projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into HEAD
[rails.git]
/
app
/
assets
/
javascripts
/
user.js
diff --git
a/app/assets/javascripts/user.js
b/app/assets/javascripts/user.js
index 69cc259f0c9e0195ecf5157ebb8d20d3e7703cac..8e4410fcee0568d04e2297a178205c60df144454 100644
(file)
--- a/
app/assets/javascripts/user.js
+++ b/
app/assets/javascripts/user.js
@@
-1,4
+1,4
@@
-//= require leaflet.locate
+//= require leaflet.locate
control/src/L.Control.Locate
$(document).ready(function () {
if ($("#map").length) {
$(document).ready(function () {
if ($("#map").length) {
@@
-18,7
+18,9
@@
$(document).ready(function () {
iconLoading: "icon geolocate",
strings: {
title: I18n.t("javascripts.map.locate.title"),
iconLoading: "icon geolocate",
strings: {
title: I18n.t("javascripts.map.locate.title"),
- popup: I18n.t("javascripts.map.locate.popup")
+ popup: function (options) {
+ return I18n.t("javascripts.map.locate." + options.unit + "Popup", { count: options.distance });
+ }
}
}).addTo(map);
}
}).addTo(map);
@@
-85,8
+87,8
@@
$(document).ready(function () {
$("select#user_auth_provider").on("change", updateAuthUID);
$("select#user_auth_provider").on("change", updateAuthUID);
- $("input#user_
image
").on("change", function () {
- $("#
image
_action_new").prop("checked", true);
+ $("input#user_
avatar
").on("change", function () {
+ $("#
user_avatar
_action_new").prop("checked", true);
});
function enableAuth() {
});
function enableAuth() {