From ca64b39e0d204e76bc4a3a0281bdee9f22fe0824 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 25 Nov 2013 13:20:48 -0800 Subject: [PATCH] Make main page flash messages visible --- app/assets/javascripts/index.js | 1 + app/views/layouts/map.html.erb | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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" %> +
+
-- 2.39.5