projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1f194
)
Remove object parameter from share URL
author
John Firebaugh
<john.firebaugh@gmail.com>
Thu, 5 Dec 2013 18:59:15 +0000
(10:59 -0800)
committer
Tom Hughes
<tom@compton.nu>
Thu, 5 Dec 2013 19:09:33 +0000
(19:09 +0000)
Fixes #616
Fixes #624
app/assets/javascripts/leaflet.map.js.erb
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/leaflet.map.js.erb
b/app/assets/javascripts/leaflet.map.js.erb
index af7ce202da4ec23f2bee1f018d9c0efc93b39139..ed89e1fa572106acbd4c414349040cbb915dbf45 100644
(file)
--- a/
app/assets/javascripts/leaflet.map.js.erb
+++ b/
app/assets/javascripts/leaflet.map.js.erb
@@
-100,10
+100,6
@@
L.OSM.Map = L.Map.extend({
params.mlon = latLng.lng.toFixed(precision);
}
- if (this._object) {
- params[this._object.type] = this._object.id;
- }
-
var url = 'http://' + OSM.SERVER_URL + '/',
query = querystring.stringify(params),
hash = OSM.formatHash(this);