Fix some eslint errors (quotes, spacing and parseInt radix) on .js.erb files
These have been flagged by eslint-plugin-erb, and need to be fixed before that plugin can be enabled.
This commit is contained in:
parent
8cf77a2f36
commit
6b06be5e5d
3 changed files with 64 additions and 63 deletions
|
@ -10,15 +10,15 @@ $(document).ready(function () {
|
|||
var params = {};
|
||||
|
||||
if (mapParams.object) {
|
||||
params.id = mapParams.object.type + '/' + mapParams.object.id;
|
||||
params.id = mapParams.object.type + "/" + mapParams.object.id;
|
||||
mapParams = OSM.parseHash(location.hash);
|
||||
if (mapParams.center) {
|
||||
params.map = mapParams.zoom + '/' + mapParams.center.lat + '/' + mapParams.center.lng;
|
||||
params.map = mapParams.zoom + "/" + mapParams.center.lat + "/" + mapParams.center.lng;
|
||||
}
|
||||
} else if (id.data("lat") && id.data("lon")) {
|
||||
params.map = "16/" + id.data("lat") + "/" + id.data("lon");
|
||||
} else {
|
||||
params.map = (mapParams.zoom || 17) + '/' + mapParams.lat + '/' + mapParams.lon;
|
||||
params.map = (mapParams.zoom || 17) + "/" + mapParams.lat + "/" + mapParams.lon;
|
||||
}
|
||||
|
||||
if (hashParams.background) params.background = hashParams.background;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue