File tree 2 files changed +6
-7
lines changed
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ var weekdays_only = false;
5
5
var color = CalendarApp . EventColor . PALE_RED ;
6
6
7
7
/* Advanced Settings */
8
- var eventPrefix = "BOOKED " ; // update this to the text you'd like to appear in the new events created in primary calendar
9
- var default_very_private = true ;
8
+ var eventPrefix = "Blocked " ; // update this to the text you'd like to appear in the new events created in primary calendar
9
+ var default_very_private = false ;
10
10
var sync_lock_seconds = 60 ;
11
11
var logging = true ;
12
12
var warning = true ;
Original file line number Diff line number Diff line change 1
-
2
1
function copyEventSummary ( event ) {
3
- if ( event . visibility == " private" || default_very_private ) {
4
- return eventPrefix + " (Private)" ;
2
+ if ( event . visibility == ' private' || event . visibility == undefined && default_very_private ) {
3
+ return eventPrefix ; // +" (Private)";
5
4
} else {
6
5
return eventPrefix + " (" + event . summary + ")" ;
7
6
}
8
7
}
9
8
10
9
function copyEventDescription ( event ) {
11
- if ( event . visibility == "private" || default_very_private ) {
12
- return "Private " ;
10
+ if ( event . visibility == "public" && default_very_private ) {
11
+ return "" ;
13
12
} else {
14
13
return event . description ;
15
14
}
You can’t perform that action at this time.
0 commit comments