summaryrefslogtreecommitdiff
path: root/web/public/js
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2013-01-17 11:44:05 +0100
committerJochen Topf <jochen@topf.org>2013-01-17 11:44:05 +0100
commit2a6a1bc09a3839d3c941def8f01ea76974caf37e (patch)
tree85b786f37dd1f04575b83bc8ce775890abfcd1ff /web/public/js
parent5e05d84eef8b07958dbc9a0dfc8cbba10f8d3a4b (diff)
downloadtaginfo-2a6a1bc09a3839d3c941def8f01ea76974caf37e.tar
taginfo-2a6a1bc09a3839d3c941def8f01ea76974caf37e.tar.gz
More print_* to fmt_* cleanup
Diffstat (limited to 'web/public/js')
-rw-r--r--web/public/js/taginfo.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js
index 61fc206..307c508 100644
--- a/web/public/js/taginfo.js
+++ b/web/public/js/taginfo.js
@@ -380,9 +380,7 @@ function fmt_value_with_percent(value, fraction) {
tag('div', '', { 'class': 'bar', style: style({ width: (fraction*100).toFixed() + 'px' }) });
}
-/* ============================ */
-
-function print_key_or_tag_list(list) {
+function fmt_key_or_tag_list(list) {
return jQuery.map(list, function(tag, i) {
if (tag.match(/=/)) {
var el = tag.split('=', 2);
@@ -393,7 +391,7 @@ function print_key_or_tag_list(list) {
}).join(' &bull; ');
}
-function print_prevalent_value_list(key, list) {
+function fmt_prevalent_value_list(key, list) {
if (list.length == 0) {
return empty(texts.misc.values_less_than_one_percent);
}