diff options
author | Jochen Topf <jochen@topf.org> | 2013-01-17 09:48:12 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2013-01-17 09:48:12 +0100 |
commit | 5d4abbc9e3a634afa0ee18d8ea55c3dd6cd1a8cd (patch) | |
tree | eae38485979359a537e894b8b7b15ad84910e25e /web | |
parent | 4449d51ab9c9d3a523af9008b21c372e36af76a8 (diff) | |
download | taginfo-5d4abbc9e3a634afa0ee18d8ea55c3dd6cd1a8cd.tar taginfo-5d4abbc9e3a634afa0ee18d8ea55c3dd6cd1a8cd.tar.gz |
Rename pp_* functions to fmt_*
Diffstat (limited to 'web')
-rw-r--r-- | web/public/js/taginfo.js | 14 | ||||
-rw-r--r-- | web/views/key.erb | 2 | ||||
-rw-r--r-- | web/views/relation.erb | 2 | ||||
-rw-r--r-- | web/views/tag.erb | 2 | ||||
-rw-r--r-- | web/viewsjs/relation.js.erb | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/web/public/js/taginfo.js b/web/public/js/taginfo.js index 3512d37..ec79458 100644 --- a/web/public/js/taginfo.js +++ b/web/public/js/taginfo.js @@ -99,7 +99,7 @@ function translate(str, fn) { return result; } -function pp_key(key) { +function fmt_key(key) { if (key == '') { return span(texts.misc.empty_string, 'badchar empty'); } @@ -117,7 +117,7 @@ function pp_key(key) { }); } -function pp_value(value) { +function fmt_value(value) { if (value == '') { return span(texts.misc.empty_string, 'badchar empty'); } @@ -127,7 +127,7 @@ function pp_value(value) { .replace(/\s/g, span(' ', 'whitespace')); } -function pp_rtype(rtype) { +function fmt_rtype(rtype) { if (rtype == '') { return span(texts.misc.empty_string, 'badchar empty'); } @@ -145,7 +145,7 @@ function pp_rtype(rtype) { }); } -function pp_role(role) { +function fmt_role(role) { if (role == '') { return span(texts.misc.empty_string, 'empty'); } @@ -168,7 +168,7 @@ function pp_role(role) { function link_to_key(key, attr) { return link( url_for_key(key), - pp_key(key), + fmt_key(key), attr ); } @@ -176,7 +176,7 @@ function link_to_key(key, attr) { function link_to_value(key, value, attr) { return link( url_for_tag(key, value), - pp_value(value), + fmt_value(value), attr ); } @@ -188,7 +188,7 @@ function link_to_tag(key, value, key_attr, value_attr) { function link_to_rtype(rtype, attr) { return link( url_for_rtype(rtype), - pp_rtype(rtype), + fmt_rtype(rtype), attr ); } diff --git a/web/views/key.erb b/web/views/key.erb index e636b26..5a86516 100644 --- a/web/views/key.erb +++ b/web/views/key.erb @@ -105,7 +105,7 @@ JS.raw(<<"JAVASCRIPT") function page_init2() { var key = #{ @key.to_json }; - jQuery('h1').html(pp_key(key)); + jQuery('h1').html(fmt_key(key)); init_tabs([key, #{ @filter_type.to_json }, #{ r18n.locale.code.to_json }]); create_chart({ key: key, diff --git a/web/views/relation.erb b/web/views/relation.erb index 0c6b066..4cee9a9 100644 --- a/web/views/relation.erb +++ b/web/views/relation.erb @@ -24,7 +24,7 @@ JS.raw(<<"JAVASCRIPT") function page_init2() { var rtype = #{ @rtype.to_json }; - jQuery('h1').html("#{ t.pages.relation.name } '" + pp_rtype(rtype) + "'"); + jQuery('h1').html("#{ t.pages.relation.name } '" + fmt_rtype(rtype) + "'"); init_tabs([rtype]); } JAVASCRIPT diff --git a/web/views/tag.erb b/web/views/tag.erb index 0ad61c7..3064437 100644 --- a/web/views/tag.erb +++ b/web/views/tag.erb @@ -77,7 +77,7 @@ function page_init2() { var key = #{ @key.to_json }, value = #{ @value.to_json }; up = function() { window.location = url_for_key(key); }; - jQuery('h1').html(link_to_key(key) + '=' + pp_value(value)); + jQuery('h1').html(link_to_key(key) + '=' + fmt_value(value)); jQuery('span#keylink').html(link_to_key(key)); init_tabs([key, value, #{ @filter_type.to_json }]); } diff --git a/web/viewsjs/relation.js.erb b/web/viewsjs/relation.js.erb index f4713be..3682da1 100644 --- a/web/viewsjs/relation.js.erb +++ b/web/viewsjs/relation.js.erb @@ -21,7 +21,7 @@ var create_flexigrid_for = { preProcess: function(data) { data.rows = jQuery.map(data.data, function(row, i) { return { 'cell': [ - pp_role(row.role), + fmt_role(row.role), print_value_with_percent(row.count_all_members, row.count_all_members_fraction), print_value_with_percent(row.count_node_members, row.count_node_members_fraction), print_value_with_percent(row.count_way_members, row.count_way_members_fraction), |