From ee83b7feeca5e0bf0d2e29275ee73919f28bdb60 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Fri, 18 Jan 2013 18:20:31 +0100 Subject: Fixed some more relation type unconsistencies --- web/viewsjs/relations.js.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/viewsjs') 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: '<%= osm.relations %>', name: 'count', width: 250, sortable: true, align: 'center' }, { display: '<%= osm.tag %>', name: 'tag', width: 250, sortable: false }, { display: '<%= page.prevalent_roles %>', 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) ] }; }); -- cgit v1.2.3