aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorIrlJidel <donal.diamond@gmail.com>2013-01-18 14:18:57 +0000
committerIrlJidel <donal.diamond@gmail.com>2013-01-18 14:18:57 +0000
commit055dc3a28428fb6914f02bab35933a4cea614731 (patch)
tree4230fcc286421c439f8df52bc5d2a84683773d58 /web/viewsjs
parent1c332107b2fc68f997cee654cfcf18604ab55c9b (diff)
downloadtaginfo-055dc3a28428fb6914f02bab35933a4cea614731.tar
taginfo-055dc3a28428fb6914f02bab35933a4cea614731.tar.gz
Use rtype as param for api/4/relation/roles call
Was using type as param which is inconsistent with api/4/relation/stats call Also example was using role as param which is incorrect
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/relation.js.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/viewsjs/relation.js.erb b/web/viewsjs/relation.js.erb
index 931f33c..13d431c 100644
--- a/web/viewsjs/relation.js.erb
+++ b/web/viewsjs/relation.js.erb
@@ -28,7 +28,7 @@ var create_flexigrid_for = {
},
roles: function(rtype) {
create_flexigrid('grid-roles', {
- url: '/api/4/relation/roles?type=' + encodeURIComponent(rtype),
+ url: '/api/4/relation/roles?rtype=' + encodeURIComponent(rtype),
colModel: [
{ display: '<%= osm.relation_member_role %>', name: 'role', width: 250, sortable: true },
{ display: '<span title="<%= page.roles.objects_tooltip %>"><img src="/img/types/all.16.png" width="16" height="16" alt=""/> <%= osm.relation_members %></span>', name: 'count_all_members', width: 250, sortable: true, align: 'center' },