diff options
author | Jochen Topf <jochen@topf.org> | 2014-09-14 12:20:41 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-09-14 12:20:41 +0200 |
commit | 3d9bda39eab56852a42312e876d02d32de0f55e0 (patch) | |
tree | 221e7b65eaeee3d2132db4f0e6ebdbab2bf6c444 /web/viewsjs | |
parent | 9aa36f6bbbe0fb480717c001f36117e5cf3ccf30 (diff) | |
download | taginfo-3d9bda39eab56852a42312e876d02d32de0f55e0.tar taginfo-3d9bda39eab56852a42312e876d02d32de0f55e0.tar.gz |
Projects on tag page: Show NULL value only if specific value not available.
Diffstat (limited to 'web/viewsjs')
-rw-r--r-- | web/viewsjs/tag.js.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/viewsjs/tag.js.erb b/web/viewsjs/tag.js.erb index 52821ea..7cd9787 100644 --- a/web/viewsjs/tag.js.erb +++ b/web/viewsjs/tag.js.erb @@ -130,14 +130,14 @@ var create_flexigrid_for = { url: '/api/4/tag/projects?key=' + encodeURIComponent(key) + '&value=' + encodeURIComponent(value), colModel: [ { display: '<%= h(taginfo.project) %>', name: 'project_name', width: 280, sortable: true }, - { display: '<%= h(osm.tag) %>', name: 'key', width: 220, sortable: true }, + { display: '<%= h(osm.tag) %>', name: 'tag', width: 220, sortable: true }, { display: '<%= h(osm.objects) %>', name: 'objects', width: 80, sortable: false }, { display: '<%= h(page.projects.description) %>', name: 'description', width: 600, sortable: false, align: 'left' } ], searchitems: [ { display: '<%= h(taginfo.project) %>/<%= h(osm.value) %>', name: 'project_value' } ], - sortname: 'key', + sortname: 'tag', sortorder: 'asc', preProcess: function(data) { data.rows = jQuery.map(data.data, function(row, i) { |