The Calendar You've Been Waiting For
Prevent accidental drag and drop changes from modifying an event in a particular calendar source. This will prevent any dragged events from saving the changes to the event.
Easy Copy & Paste Install:
Simple copy and paste this into a new On Event Save event action:
Trigger | On Event Save |
Script |
//Revert changes if the event was dragged and dropped if (event.beforeDrop) { action.callbacks.cancel(); } else{ action.callbacks.confirm(); } |
Options | Open in new window: No Prevent default action: Yes |
Use this verison of the app action if your users are primarily using the schedule views to assign items to resources and you don’t want them changing an item’s time when they do so. This mod will snap an event back to its original time if dragging the event accidentally includes a change to the event time.
Easy Copy & Paste Install:
Simple copy and paste this into a new On Before Save event action:
Trigger | Before Event Save |
Script |
//Before Event Save function noTimeChange() { //drag and drop or popover edit? if(event.beforeDrop) { if(event.allDay!==event.beforeDrop.allDay || |
Options | Open in new window: No Prevent default action: No |
No download. Code included above.