Author API Events
activityduplicate:success
Fires after an Activity has been successfully duplicated.
You would want to be notified about this event firing, because you might want to display a custom message to the content creator to inform them of the successful duplication, for example.
This event fires after the save:activity:success
event, in the case of a shallow copy of an Activity which has succeeded.
The save:activity:success
event will not be fired in the case of a deep copy of an Activity which has succeeded.
Examples
authorApp.on('activityduplicate:success', function () {
console.log('This code executes when the Activity has been successfully duplicated.');
});
Related articles
- The
activityduplicate:error
event, which fires after an Activity has failed to duplicate. - The
duplicateActivity()
method, which duplicates the current Activity.