From: Tom Hughes Date: Sun, 14 Jul 2019 09:52:18 +0000 (+0100) Subject: Enforce consistent indentation in javascript code X-Git-Tag: live~3093 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c4c0e8105a8edc35205add749f461ec7be689aef?hp=807750023aa02896117a1d5d67a750eccd31d90b Enforce consistent indentation in javascript code --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index b7acc3310..7c2e4665e 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -26,8 +26,8 @@ var qs = require("querystring-component"); window.updateLinks = function (loc, zoom, layers, object) { $(".geolink").each(function (index, link) { var href = link.href.split(/[?#]/)[0], - args = qs.parse(link.search.substring(1)), - editlink = $(link).hasClass("editlink"); + args = qs.parse(link.search.substring(1)), + editlink = $(link).hasClass("editlink"); delete args.node; delete args.way; diff --git a/app/assets/javascripts/id.js b/app/assets/javascripts/id.js index 0aae749f7..ba16d9df2 100644 --- a/app/assets/javascripts/id.js +++ b/app/assets/javascripts/id.js @@ -27,8 +27,8 @@ document.addEventListener("DOMContentLoaded", function () { id.map().on("move.embed", parent.$.throttle(250, function () { if (id.inIntro()) return; var zoom = ~~id.map().zoom(), - center = id.map().center(), - llz = { lon: center[0], lat: center[1], zoom: zoom }; + center = id.map().center(), + llz = { lon: center[0], lat: center[1], zoom: zoom }; parent.updateLinks(llz, zoom); diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 6228b2376..fd707e566 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -234,7 +234,7 @@ $(document).ready(function () { e.preventDefault(); var data = $(this).data(), - center = L.latLng(data.lat, data.lon); + center = L.latLng(data.lat, data.lon); map.setView(center, data.zoom); L.marker(center, { icon: OSM.getUserIcon() }).addTo(map); @@ -260,13 +260,13 @@ $(document).ready(function () { if (object) query.select = object.type + object.id; var iframe = $("