diff --git a/js/app/views/EpnTapUI.js b/js/app/views/EpnTapUI.js index 47a7111..5115ac5 100644 --- a/js/app/views/EpnTapUI.js +++ b/js/app/views/EpnTapUI.js @@ -192,6 +192,10 @@ Ext.define('App.util.Format', { } return '
' + txt + '
' }, + 'proc_lvl': function(data) { + var levels = {1: 'Raw', 2: 'Edited', 3: 'Calibrated', 4: 'Resampled', 5: 'Derived', 6: 'Ancillary'}; + return (data in levels) ? '' + levels[data] + '
' : '' + data + ''; + }, 'date': function(data) { if(isNaN(data)) { return ''; @@ -203,7 +207,7 @@ Ext.define('App.util.Format', { var D = Math.floor((h % 153) / 5) + 1; var M = ((Math.floor(h / 153) + 2) % 12) + 1; var Y = Math.floor(e / 1461) - 4716 + Math.floor((12 + 2 - M) / 12); - return Ext.Date.format(new Date(Y, M-1, D), 'Y-m-d'); + return Ext.Date.format(new Date(Y, M-1, D), 'Y/m/d'); }, 'number': function(val) { if(val < 0) { -- libgit2 0.21.2