Skip to content

Commit

Permalink
infowindow hang after login fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kunaldi committed Jan 24, 2012
1 parent b504718 commit 4a11c7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/javascripts/main.js.erb
Expand Up @@ -92,6 +92,10 @@ $(function() {
function fetchSidewalkInfo(gid, pos) {
if (gid == undefined)
gid = activeObjectId;
if (gid == undefined) {
activeInfoWindow.close();
return false;
}
if (pos == undefined)
pos = map.getCenter();
//if (!window.console) console.info(e.latLng);
Expand Down

0 comments on commit 4a11c7e

Please sign in to comment.