projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05bc2b7
)
Make ?{node,way,relation}=id GET argumens work for the shortlink as
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Sat, 27 Jun 2009 16:11:21 +0000
(16:11 +0000)
committer
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Sat, 27 Jun 2009 16:11:21 +0000
(16:11 +0000)
well as the permalink.
public/javascripts/site.js
patch
|
blob
|
history
diff --git
a/public/javascripts/site.js
b/public/javascripts/site.js
index f9c3e7a54e823bb4500876ccd5b42a50506b242b..66c5d81fc9814b19d8d8e912587d1f580bcc639f 100644
(file)
--- a/
public/javascripts/site.js
+++ b/
public/javascripts/site.js
@@
-94,6
+94,11
@@
function updatelinks(lon,lat,zoom,layers,minlon,minlat,maxlon,maxlat, obj_type,
var code = makeShortCode(lat, lon, zoom);
var prefix = shortlinkPrefix();
+ // Add ?{node,way,relation}=id to the arguments
+ if (obj_type && obj_id) {
+ args[obj_type] = obj_id;
+ }
+
// little hack. may the gods of hardcoding please forgive me, or
// show me the Right way to do it.
if (layers && (layers != "B000FTF")) {