Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity Move Question #6

Open
emresaracoglu opened this issue Jun 7, 2018 · 1 comment
Open

Activity Move Question #6

emresaracoglu opened this issue Jun 7, 2018 · 1 comment

Comments

@emresaracoglu
Copy link

Hi,

If the event is moved to a different date, can ask the user to "Are you sure? "

Thank you

@emresaracoglu emresaracoglu changed the title Activity Move Query Activity Move Question Jun 7, 2018
@fatlard1993
Copy link

This should be a feature of your app and not of this library. You can implement it something like this (thought there are probably a few, this is what comes to mind):

calendar.on('dropped', function(cal, event){
	var revert = // y/n from user

	if(revert){
		cal.state.dragging = true;
		cal.state.dragged = event;
		cal.state.newPosition = event.position;
		cal.state.newAt = event.at;

		cal.moveCell(event);
	}
});

calendar.on('cellDidNotMove', function(cal){
	cal.render();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants