projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
587a1b0
)
Pass I18n argument correctly
author
Tom Hughes
<tom@compton.nu>
Fri, 20 Mar 2020 14:58:45 +0000
(14:58 +0000)
committer
Tom Hughes
<tom@compton.nu>
Fri, 20 Mar 2020 14:58:45 +0000
(14:58 +0000)
app/assets/javascripts/user.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/user.js
b/app/assets/javascripts/user.js
index b9518f10de451cca7f76cccd20c257dad91f663c..377efb315b290eaf48a1c186f44aa648b56fe153 100644
(file)
--- a/
app/assets/javascripts/user.js
+++ b/
app/assets/javascripts/user.js
@@
-19,7
+19,7
@@
$(document).ready(function () {
strings: {
title: I18n.t("javascripts.map.locate.title"),
popup: function (options) {
- return I18n.t("javascripts.map.locate." + options.unit + "Popup",
:count => options.distance
);
+ return I18n.t("javascripts.map.locate." + options.unit + "Popup",
{ count: options.distance }
);
}
}
}).addTo(map);