This commit is contained in:
@@ -139,17 +139,12 @@ document.addEventListener("fetchEnd", function() {
|
|||||||
// FILTERS
|
// FILTERS
|
||||||
//
|
//
|
||||||
|
|
||||||
//TODO: These almost all need more work to format as proper numeric value (comma versus decimal etc)
|
|
||||||
|
|
||||||
Vue.filter("capitalize", function vueFilterCapitalize(value) {
|
Vue.filter("capitalize", function vueFilterCapitalize(value) {
|
||||||
if (!value) return "";
|
if (!value) return "";
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
return value.charAt(0).toUpperCase() + value.slice(1);
|
return value.charAt(0).toUpperCase() + value.slice(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString#Browser_compatibility
|
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString#Browser_compatibility
|
||||||
//https://www.currency-iso.org/en/home.html
|
//https://www.currency-iso.org/en/home.html
|
||||||
Vue.filter("currency", function vueFilterCurrency(value) {
|
Vue.filter("currency", function vueFilterCurrency(value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user