aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-18 18:20:31 +0100
committerJochen Topf <jochen@topf.org>2013-01-18 18:20:31 +0100
commitee83b7feeca5e0bf0d2e29275ee73919f28bdb60 (patch)
tree728183cc6d2bd825ba669b0875a7378b21fcff6a /web/viewsjs
parent95eabe7a9f66c49c164115502e4073adb08cd864 (diff)
downloadtaginfo-ee83b7feeca5e0bf0d2e29275ee73919f28bdb60.tar
taginfo-ee83b7feeca5e0bf0d2e29275ee73919f28bdb60.tar.gz
Fixed some more relation type unconsistencies
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/relations.js.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/viewsjs/relations.js.erb b/web/viewsjs/relations.js.erb
index 02eaf0f..a9389d6 100644
--- a/web/viewsjs/relations.js.erb
+++ b/web/viewsjs/relations.js.erb
@@ -6,22 +6,22 @@ function page_init() {
create_flexigrid('grid-relations', {
url: '/api/4/relations/all',
colModel: [
- { display: '<%= osm.relation_type %>', name: 'relation_type', width: 220, sortable: true },
+ { display: '<%= osm.relation_type %>', name: 'rtype', width: 220, sortable: true },
{ display: '<span title="<%= page.relations_of_type_tooltip %>"><%= osm.relations %></span>', name: 'count', width: 250, sortable: true, align: 'center' },
{ display: '<%= osm.tag %>', name: 'tag', width: 250, sortable: false },
{ display: '<span title="<%= page.prevalent_roles_tooltip %>"><%= page.prevalent_roles %></span>', name: 'prevalent_roles', width: 550, sortable: false }
],
searchitems: [
- { display: '<%= osm.relation_type %>', name: 'relation_type' }
+ { display: '<%= osm.relation_type %>', name: 'rtype' }
],
sortname: 'count',
sortorder: 'desc',
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [
- link_to_rtype(row.relation_type),
+ link_to_rtype(row.rtype),
fmt_value_with_percent(row.count, row.count_fraction),
- link_to_tag('type', row.relation_type),
+ link_to_tag('type', row.rtype),
fmt_prevalent_role_list(row.prevalent_roles)
] };
});