X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/eb7678145a87c1b9e3cd7ff2d3b5dc08132e4b51..796fde85292ed049f190c2f818c1b55b2cc1971d:/app/assets/javascripts/index/browse.js diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index c840ecdfa..07ad64def 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -49,15 +49,20 @@ OSM.initializeBrowse = function (map) { function displayFeatureWarning(count, limit, add, cancel) { $("#browse_status").html( - $("

") - .text(I18n.t("browse.start_rjs.feature_warning", { num_features: count, max_features: limit })) - .prepend( - $("") - .click(cancel)) + $("
") .append( - $("") - .val(I18n.t("browse.start_rjs.load_data")) - .click(add))); + $("

") + .text(I18n.t("browse.start_rjs.load_data")) + .prepend($("").click(cancel))) + .append( + $("
") + .append( + $("

") + .text(I18n.t("browse.start_rjs.feature_warning", { num_features: count, max_features: limit }))) + .append( + $("") + .val(I18n.t("browse.start_rjs.load_data")) + .click(add)))); } var dataLoader; @@ -120,7 +125,7 @@ OSM.initializeBrowse = function (map) { // Redraw in selected style layer.originalStyle = layer.options; - layer.setStyle({color: "#0000ff", weight: 8}); + layer.setStyle({ color: "#0000ff", weight: 8 }); OSM.router.route("/" + layer.feature.type + "/" + layer.feature.id);