Browse Source

Add cubic meters to units

Dennis de Greef 10 years ago
parent
commit
9c64da4323
1 changed files with 4 additions and 2 deletions
  1. 4 2
      public/app/core/utils/kbn.js

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

@@ -397,6 +397,7 @@ function($, _) {
   // Volume
   // Volume
   kbn.valueFormats.litre  = kbn.formatBuilders.decimalSIPrefix('L');
   kbn.valueFormats.litre  = kbn.formatBuilders.decimalSIPrefix('L');
   kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('L', -1);
   kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('L', -1);
+  kbn.valueFormats.m3     = kbn.formatBuilders.decimalSIPrefix('m3');
 
 
   // Time
   // Time
   kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('Hz');
   kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('Hz');
@@ -568,8 +569,9 @@ function($, _) {
       {
       {
         text: 'volume',
         text: 'volume',
         submenu: [
         submenu: [
-          {text: 'millilitre', value: 'mlitre'},
-          {text: 'litre',      value: 'litre' },
+          {text: 'millilitre',  value: 'mlitre'},
+          {text: 'litre',       value: 'litre' },
+          {text: 'cubic metre', value: 'm3'    },
         ]
         ]
       },
       },
       {
       {