summaryrefslogtreecommitdiff
path: root/web/viewsjs/key.js.erb
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-06 22:10:12 +0100
committerJochen Topf <jochen@topf.org>2013-01-06 22:19:55 +0100
commitaa9428b9e14542e79c38c9d7ef549a2766766846 (patch)
treed39a2c22e86e1d63c5368a1be613ab1e42868523 /web/viewsjs/key.js.erb
parent068fc5d43dd2a0e01025b018b682b39089a57338 (diff)
downloadtaginfo-aa9428b9e14542e79c38c9d7ef549a2766766846.tar
taginfo-aa9428b9e14542e79c38c9d7ef549a2766766846.tar.gz
More javascript cleanup
Diffstat (limited to 'web/viewsjs/key.js.erb')
-rw-r--r--web/viewsjs/key.js.erb10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/viewsjs/key.js.erb b/web/viewsjs/key.js.erb
index e8db21f..9333425 100644
--- a/web/viewsjs/key.js.erb
+++ b/web/viewsjs/key.js.erb
@@ -104,11 +104,11 @@ var create_flexigrid_for = {
print_language(row.lang, row.language, row.language_en),
print_wiki_link(row.title),
row.description,
- row.image == '' ? empty('<%= misc.no_image %>') : hover_expand(print_wiki_link(row.image)),
- (row.on_node ? '<img src="/img/types/node.16.png" alt="yes" width="16" height="16"/>' : '<img src="/img/types/none.16.png" alt="no" width="16" height="16"/>') + ' ' +
- (row.on_way ? '<img src="/img/types/way.16.png" alt="yes" width="16" height="16"/>' : '<img src="/img/types/none.16.png" alt="no" width="16" height="16"/>') + ' ' +
- (row.on_area ? '<img src="/img/types/area.16.png" alt="yes" width="16" height="16"/>' : '<img src="/img/types/none.16.png" alt="no" width="16" height="16"/>') + ' ' +
- (row.on_relation ? '<img src="/img/types/relation.16.png" alt="yes" width="16" height="16"/>' : '<img src="/img/types/none.16.png" alt="no" width="16" height="16"/>'),
+ row.image == '' ? empty('<%= misc.no_image %>') : hover_expand(print_wiki_link(row.image)),
+ print_type_icon('node', row.on_node) +
+ print_type_icon('way', row.on_way) +
+ print_type_icon('area', row.on_area) +
+ print_type_icon('relation', row.on_relation),
print_key_or_tag_list(row.tags_implies),
print_key_or_tag_list(row.tags_combination),
print_key_or_tag_list(row.tags_linked)