parent
69fdcfd163
commit
d95361bcb9
3 changed files with 4 additions and 4 deletions
|
@ -44,10 +44,10 @@ OSM.History = function(map) {
|
|||
}
|
||||
|
||||
function loadData() {
|
||||
var data = {};
|
||||
var data = {list: '1'};
|
||||
|
||||
if (window.location.pathname === '/history') {
|
||||
data = {bbox: map.getBounds().wrap().toBBoxString()};
|
||||
data.bbox = map.getBounds().wrap().toBBoxString();
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1721,7 +1721,7 @@ EOF
|
|||
assert_template "changeset/history"
|
||||
assert_select "h2", :text => "Changesets", :count => 1
|
||||
|
||||
get :list, {:format => "html", :bbox => '-180,-90,90,180'}
|
||||
get :list, {:format => "html", :list => '1', :bbox => '-180,-90,90,180'}
|
||||
assert_response :success
|
||||
assert_template "list"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue