From: John Firebaugh Date: Mon, 25 Nov 2013 21:20:48 +0000 (-0800) Subject: Make main page flash messages visible X-Git-Tag: live~5173^2~6 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/ca64b39e0d204e76bc4a3a0281bdee9f22fe0824 Make main page flash messages visible --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 6f4603923..f90dca7bf 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -40,6 +40,7 @@ dataType: "html", complete: function(xhr) { clearTimeout(loaderTimeout); + $('#flash').empty(); $('#sidebar_loader').hide(); $('#sidebar_content').html(xhr.responseText); if (xhr.getResponseHeader('X-Page-Title')) { diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb index ccbb463a6..68162f703 100644 --- a/app/views/layouts/map.html.erb +++ b/app/views/layouts/map.html.erb @@ -30,6 +30,10 @@

<%= t 'layouts.osm_read_only' %>

<% end %> +
+ <%= render :partial => "layouts/flash" %> +
+