parent
f134b08ecf
commit
f0fbf40363
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue