Calling this function on a SharePoint calendar view will disable the drag and drop feature. This feature is enabled by default, which many users find annoying because calendar events can have their start and end dates changed too easily with the drag of a mouse.
Simply call the function above while on a calendar view, and it will do its’ magic. The function is triggered after the
SP.UI.ApplicationPages.Calendar.js script is loaded.