aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 18:08:32 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 18:08:32 +0100
commitc5428074f4380471e2da6f17c6f7a2375f262bca (patch)
tree4a57f7662e46234fa926c3e2ebefe09c9d538c81 /web/viewsjs
parentb17a29ca705f07c294f5dc34396f59420f008d1b (diff)
downloadtaginfo-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.erb5
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();
}