Show A Bootstrap Popup And Then Revert The Eventdrop In Fullcalendar Based On User's Choice
Currently I am using Javascript confirm box to ask whether the user wants to proceed or he wants to revert, but I need to warn the user using Bootstrap popup. User needs to say 'Pr
Solution 1:
Sometimes in eventDrop
function if
not work if {
}
not given. So, please follow my code below::
eventDrop: function(event, delta, revertFunc) {
if (!confirm("Are you sure to re-book the ticket?")) {
revertFunc();
}
}
But it will be better to use a confirmbox or bootstap cofirm modal because if any user checks prevent this page from additional dialogs , from next time that alert box will not show.
Working url:: https://jsfiddle.net/rekdp2wt/
Post a Comment for "Show A Bootstrap Popup And Then Revert The Eventdrop In Fullcalendar Based On User's Choice"