]> git.openstreetmap.org Git - rails.git/commitdiff
Make main page flash messages visible
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 25 Nov 2013 21:20:48 +0000 (13:20 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 25 Nov 2013 21:20:59 +0000 (13:20 -0800)
app/assets/javascripts/index.js
app/views/layouts/map.html.erb

index 6f4603923a4d4783168c434c8fc6e80f3deaa447..f90dca7bf01ecfefab86692bece3e112b6309cee 100644 (file)
@@ -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')) {
index ccbb463a69d857bcc68999b9e0a8b99f0c26304d..68162f7032246e51ba540300f3ea5c1f1a42ba61 100644 (file)
       <p class="error"><%= t 'layouts.osm_read_only' %></p>
     <% end %>
 
+    <div id="flash">
+      <%= render :partial => "layouts/flash" %>
+    </div>
+
     <div id="browse_status"></div>
 
     <div id="sidebar_loader" style="display: none;">
@@ -37,7 +41,6 @@
     </div>
 
     <div id="sidebar_content">
-      <%= render :partial => "layouts/flash" %>
       <%= yield %>
     </div>