diff options
author | Jochen Topf <jochen@topf.org> | 2014-08-19 14:34:33 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-08-19 14:34:33 +0200 |
commit | cd12010108e17dfab6ebf6f2902663430505bcfe (patch) | |
tree | 296abf9dcb954d85a1d5ac778aecd4b8c1d57175 /web/viewsjs | |
parent | 7437f074958c885c81f3e360ca4c00546f4ec53e (diff) | |
download | taginfo-cd12010108e17dfab6ebf6f2902663430505bcfe.tar taginfo-cd12010108e17dfab6ebf6f2902663430505bcfe.tar.gz |
Fix URL parameter name issue ("filter" vs. "filters").
In one case the singular was used in another the plural. Documented was only
the singular version. The /api/4/keys/all call now allows both, "filter" should
be used as in the documentation, but the plural is allowed for backwards
compatibility. Fixes #67.
Diffstat (limited to 'web/viewsjs')
-rw-r--r-- | web/viewsjs/reports/characters_in_keys.js.erb | 4 | ||||
-rw-r--r-- | web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/viewsjs/reports/characters_in_keys.js.erb b/web/viewsjs/reports/characters_in_keys.js.erb index 622652b..2ef2ccb 100644 --- a/web/viewsjs/reports/characters_in_keys.js.erb +++ b/web/viewsjs/reports/characters_in_keys.js.erb @@ -5,7 +5,7 @@ var create_flexigrid_for = { whitespace: function() { create_flexigrid('grid-whitespace', { - url: '/api/4/keys/all?filters=characters_space&include=prevalent_values', + url: '/api/4/keys/all?filter=characters_space&include=prevalent_values', colModel: [ { display: '<%= h(osm.key) %>', name: 'key', width: 250, sortable: true }, { display: '<span title="<%= h(misc.objects_tooltip) %>"><img src="/img/types/all.16.png" width="16" height="16" alt=""/> <%= h(osm.objects) %></span>', name: 'count_all', width: 150, sortable: true, align: 'center' }, @@ -38,7 +38,7 @@ var create_flexigrid_for = { }, problematic: function() { create_flexigrid('grid-problematic', { - url: '/api/4/keys/all?filters=characters_problematic&include=prevalent_values', + url: '/api/4/keys/all?filter=characters_problematic&include=prevalent_values', colModel: [ { display: '<%= h(osm.key) %>', name: 'key', width: 250, sortable: true }, { display: '<span title="<%= h(misc.objects_tooltip) %>"><img src="/img/types/all.16.png" width="16" height="16" alt=""/> <%= h(osm.objects) %></span>', name: 'count_all', width: 150, sortable: true, align: 'center' }, diff --git a/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb b/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb index e376f10..71c102d 100644 --- a/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb +++ b/web/viewsjs/reports/wiki_pages_about_non_existing_keys.js.erb @@ -5,7 +5,7 @@ function page_init() { up = function() { window.location = '/reports'; }; create_flexigrid('grid-keys', { - url: '/api/4/keys/all?filters=in_wiki,not_in_db&include=wikipages', + url: '/api/4/keys/all?filter=in_wiki,not_in_db&include=wikipages', colModel: [ { display: '<img src="/img/sources/wiki.16.png" alt="Wiki" width="16" height="16" title="Wiki"/>', name: 'in_wiki', width: 20, sortable: true, align: 'center' }, { display: '<img src="/img/sources/josm.16.png" alt="JOSM" width="16" height="16" title="JOSM"/>', name: 'in_josm', width: 20, sortable: true, align: 'center' }, |