diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-18 18:08:32 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-18 18:08:32 +0100 |
commit | c5428074f4380471e2da6f17c6f7a2375f262bca (patch) | |
tree | 4a57f7662e46234fa926c3e2ebefe09c9d538c81 /web/viewsjs | |
parent | b17a29ca705f07c294f5dc34396f59420f008d1b (diff) | |
download | taginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar taginfo-c5428074f4380471e2da6f17c6f7a2375f262bca.tar.gz |
Add XAPI and JOSM buttons to relations page
Diffstat (limited to 'web/viewsjs')
-rw-r--r-- | web/viewsjs/relation.js.erb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/web/viewsjs/relation.js.erb b/web/viewsjs/relation.js.erb index 931f33c..6c4ad7e 100644 --- a/web/viewsjs/relation.js.erb +++ b/web/viewsjs/relation.js.erb @@ -58,6 +58,11 @@ var create_flexigrid_for = { }; function page_init() { + jQuery('#josm_button').bind('click', function() { + jQuery('#josmiframe')[0].src = jQuery('#josm_button')[0].href; + return false; + }); + up = function() { window.location = '/relations'; }; page_init2(); } |