Advertisement
Guest User

helper gs mod

a guest
Jul 9th, 2024
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. a. You need to modify this file because when GAS-ICS-Sync copies all your tasks it will list all tasks as "busy". This is not good as GCal will consider your whole day busy if you have even one "all day" task from todoist (task with no start end time). This modification will correctly set the timed tasks as busy, and those all day tasks as free. This is something that maybe other people don't really care about but its a big problem for calendly as it will block your entire day from being booked.
  2.  
  3. b. Look for the line (just ctrl-f for opaque):
  4.  
  5. if (event.hasProperty('transp')){
  6. var transparency = event.getFirstPropertyValue('transp').toString().toLowerCase();
  7. if(["opaque", "transparent"].indexOf(transparency) > -1)
  8. newEvent.transparency = transparency;
  9. }
  10.  
  11. and replace with
  12.  
  13. if (event.hasProperty('transp')){
  14. var transparency = event.getFirstPropertyValue('transp').toString().toLowerCase();
  15. if(["opaque", "transparent"].indexOf(transparency) > -1)
  16. newEvent.transparency = transparency;
  17. }
  18. else
  19. {
  20. if(icalEvent.startDate.isDate){
  21. newEvent.transparency = "transparent";
  22. } else{
  23. newEvent.transparency = "opaque";
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement