]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Use the map layout when rendering index for a remote edit
[rails.git] / app / controllers / changeset_controller.rb
index b880f3aa35de9cfd83b642be4587d1a93478f452..d34eb873938f648bbb1e59b7575f283bf3aa6011 100644 (file)
@@ -268,7 +268,7 @@ class ChangesetController < ApplicationController
       return
     end
 
-    if request.format == :html and !params[:bbox]
+    if request.format == :html and !params[:list]
       require_oauth
       render :action => :history, :layout => map_layout
     else
@@ -292,7 +292,7 @@ class ChangesetController < ApplicationController
         changesets = changesets.where("changesets.id <= ?", params[:max_id])
       end
 
-      @edits = changesets.order("changesets.created_at DESC").limit(20).preload(:user, :changeset_tags)
+      @edits = changesets.order("changesets.id DESC").limit(20).preload(:user, :changeset_tags)
 
       render :action => :list, :layout => false
     end