Support legacy bbox param on /history as well

Fixes #586
This commit is contained in:
John Firebaugh 2013-12-02 10:54:16 -08:00
parent 69fdcfd163
commit d95361bcb9
3 changed files with 4 additions and 4 deletions

View file

@ -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({