aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-14 11:07:06 +0200
committerJochen Topf <jochen@topf.org>2014-09-14 11:07:06 +0200
commit9aa36f6bbbe0fb480717c001f36117e5cf3ccf30 (patch)
tree1abccc8a0c7ad26e103136c9d4607bd9aacacfe3 /web/viewsjs
parent4465c66954575f80de0029b7ecd8986adec873b7 (diff)
downloadtaginfo-9aa36f6bbbe0fb480717c001f36117e5cf3ccf30.tar
taginfo-9aa36f6bbbe0fb480717c001f36117e5cf3ccf30.tar.gz
Separate out up API call for key/projects from tag/projects.
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/key.js.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/viewsjs/key.js.erb b/web/viewsjs/key.js.erb
index 46b4920..945b2e6 100644
--- a/web/viewsjs/key.js.erb
+++ b/web/viewsjs/key.js.erb
@@ -147,17 +147,17 @@ var create_flexigrid_for = {
},
projects: function(key, filter_type) {
create_flexigrid('grid-projects', {
- url: '/api/4/tag/projects?key=' + encodeURIComponent(key),
+ url: '/api/4/key/projects?key=' + encodeURIComponent(key),
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) {