X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6671a934bf10ad202576d5ca0c1591cf2ef627f8..1596713871672cc319b0d68b51a3698cc6bf0972:/app/assets/javascripts/index/search.js diff --git a/app/assets/javascripts/index/search.js b/app/assets/javascripts/index/search.js index 08d2dc96c..a87c561d2 100644 --- a/app/assets/javascripts/index/search.js +++ b/app/assets/javascripts/index/search.js @@ -2,7 +2,7 @@ OSM.Search = function(map) { $(".search_form input[name=query]").on("input", function(e) { - if ($(e.target).val() == "") { + if ($(e.target).val() === "") { $(".describe_location").fadeIn(100); } else { $(".describe_location").fadeOut(100); @@ -68,7 +68,7 @@ OSM.Search = function(map) { }); } - function showSearchResult(e) { + function showSearchResult() { var marker = $(this).data("marker"); if (!marker) { @@ -84,7 +84,7 @@ OSM.Search = function(map) { $(this).closest("li").addClass("selected"); } - function hideSearchResult(e) { + function hideSearchResult() { var marker = $(this).data("marker"); if (marker) {