projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1c81de0
)
Don't register a setHome handler unless we have the flag checkbox
author
Tom Hughes
<tom@compton.nu>
Sun, 19 Apr 2009 11:00:37 +0000
(11:00 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sun, 19 Apr 2009 11:00:37 +0000
(11:00 +0000)
prsent on the page.
app/views/user/_friend_map.rhtml
patch
|
blob
|
history
diff --git
a/app/views/user/_friend_map.rhtml
b/app/views/user/_friend_map.rhtml
index 9bdb39aae50796a7d802dbdc22a4e5bd7ca315a3..33d6e1f8566c1665c52b58a50bc2e8d98c438f3b 100644
(file)
--- a/
app/views/user/_friend_map.rhtml
+++ b/
app/views/user/_friend_map.rhtml
@@
-56,7
+56,9
@@
var nearmarker = addMarkerToMap(new OpenLayers.LonLat(nearest[i].home_lon, nearest[i].home_lat), near_icon.clone(), description);
}
- map.events.register("click", map, setHome);
+ if (document.getElementById('updatehome')) {
+ map.events.register("click", map, setHome);
+ }
}
function setHome( e ) {