aboutsummaryrefslogtreecommitdiff
path: root/web/viewsjs
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-09-07 17:15:50 +0200
committerJochen Topf <jochen@topf.org>2014-09-07 17:15:50 +0200
commiteb33a1a95fb1357e048c159432fbfd0b196befb6 (patch)
treee1c299a957eabb48f4765330af4600621d654095 /web/viewsjs
parent71edd0277b7effa2b1dc18486a5be78cddf49425 (diff)
downloadtaginfo-eb33a1a95fb1357e048c159432fbfd0b196befb6.tar
taginfo-eb33a1a95fb1357e048c159432fbfd0b196befb6.tar.gz
Remove need for project icon redirect.
Diffstat (limited to 'web/viewsjs')
-rw-r--r--web/viewsjs/key.js.erb2
-rw-r--r--web/viewsjs/projects.js.erb2
-rw-r--r--web/viewsjs/tag.js.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/web/viewsjs/key.js.erb b/web/viewsjs/key.js.erb
index 9bf8583..46b4920 100644
--- a/web/viewsjs/key.js.erb
+++ b/web/viewsjs/key.js.erb
@@ -162,7 +162,7 @@ var create_flexigrid_for = {
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [
- link_to_project(row.project_id, row.project_name),
+ link_to_project(row.project_id, row.project_name, row.project_icon_url),
row.value ? link_to_tag(row.key, row.value) : (link_to_key(row.key) + '=*'),
fmt_type_icon('node', row.on_node) +
fmt_type_icon('way', row.on_way) +
diff --git a/web/viewsjs/projects.js.erb b/web/viewsjs/projects.js.erb
index 55878c9..ac4eabf 100644
--- a/web/viewsjs/projects.js.erb
+++ b/web/viewsjs/projects.js.erb
@@ -13,7 +13,7 @@ function page_init() {
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [
- link_to_project(row.id, row.name),
+ link_to_project(row.id, row.name, row.icon_url),
html_escape(row.description)
] };
});
diff --git a/web/viewsjs/tag.js.erb b/web/viewsjs/tag.js.erb
index 34b5935..52821ea 100644
--- a/web/viewsjs/tag.js.erb
+++ b/web/viewsjs/tag.js.erb
@@ -142,7 +142,7 @@ var create_flexigrid_for = {
preProcess: function(data) {
data.rows = jQuery.map(data.data, function(row, i) {
return { 'cell': [
- link_to_project(row.project_id, row.project_name),
+ link_to_project(row.project_id, row.project_name, row.project_icon_url),
row.value ? link_to_tag(row.key, row.value) : (link_to_key(row.key) + '=*'),
fmt_type_icon('node', row.on_node) +
fmt_type_icon('way', row.on_way) +