Forráskód Böngészése

Added currency units

utkarshcmu 10 éve
szülő
commit
c5b39a5100
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      public/app/core/utils/kbn.js

+ 4 - 0
public/app/core/utils/kbn.js

@@ -341,6 +341,8 @@ function($, _) {
   // Currencies
   // Currencies
   kbn.valueFormats.currencyUSD = kbn.formatBuilders.currency('$');
   kbn.valueFormats.currencyUSD = kbn.formatBuilders.currency('$');
   kbn.valueFormats.currencyGBP = kbn.formatBuilders.currency('£');
   kbn.valueFormats.currencyGBP = kbn.formatBuilders.currency('£');
+  kbn.valueFormats.currencyEUR = kbn.formatBuilders.currency('€');
+  kbn.valueFormats.currencyJPY = kbn.formatBuilders.currency('¥');
 
 
   // Data
   // Data
   kbn.valueFormats.bits   = kbn.formatBuilders.binarySIPrefix('b');
   kbn.valueFormats.bits   = kbn.formatBuilders.binarySIPrefix('b');
@@ -508,6 +510,8 @@ function($, _) {
         submenu: [
         submenu: [
           {text: 'Dollars ($)', value: 'currencyUSD'},
           {text: 'Dollars ($)', value: 'currencyUSD'},
           {text: 'Pounds (£)',  value: 'currencyGBP'},
           {text: 'Pounds (£)',  value: 'currencyGBP'},
+          {text: 'Euro (€)',    value: 'currencyEUR'},
+          {text: 'Yen (¥)',     value: 'currencyJPY'},
         ]
         ]
       },
       },
       {
       {