I'm trying to show a Popover Confirmation when an fc-event is resized or dropped somewhere, but I'm not able to get the target element out of the jsEvent object.
This is what I came up to, when an event is triggered (drop or resize):
function dropHandler( event, delta, revertFunc, jsEvent, ui, view ) {
$(jsEvent.target).confirmation({
title: 'Are you sure?',
container: 'body'
});
$(jsEvent.target).confirmation('show');
}
Well, jsEvent.target
is not my only try but just the last (unsuccessful) one.
Check the JSFiddle demo for the full code.