diff --git a/utils/calendar.js b/utils/calendar.js index cbb59c5..4c39a2e 100644 --- a/utils/calendar.js +++ b/utils/calendar.js @@ -22,24 +22,28 @@ function fromIcal(string) { cal.Type = { TD: 1, TP: 2, - CTD: 3, - CM: 4, - Other: 5, + BE: 3, + CTD: 4, + CM: 5, + Other: 6, } cal.getTypeName = function(type) { switch (type) { + case cal.Type.TD: return "TD"; case cal.Type.TP: return "TP"; case cal.Type.CTD: return "CTD"; case cal.Type.CM: return "CM"; + case cal.Type.BE: return "BE"; default: return "Other"; } } cal.getFactor = function(type) { switch (type) { - case cal.Type.TP: case cal.Type.TD: + case cal.Type.TP: + case cal.Type.BE: return 1; case cal.Type.CTD: return 1.25; case cal.Type.CM: return 1.5;