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

Revert event callback function #16

Open
mavrosxristoforos opened this issue Apr 27, 2021 · 3 comments
Open

Revert event callback function #16

mavrosxristoforos opened this issue Apr 27, 2021 · 3 comments

Comments

@mavrosxristoforos
Copy link
Contributor

mavrosxristoforos commented Apr 27, 2021

Hi there and thank you for creating this plugin! It works very well.
I needed a revert event callback for Draggables, so I added an else block for the if ($droptarget) { in the dragstop event of the Draggable that does a simple check for a self.options.onrevert and triggers it. If you think it's useful, I could possibly include it in a PR.

@gardiner
Copy link
Owner

Hi Christopher, thanks for your message! If you do find the time and create a pull request, I will take a look and try to include it. Cheers! Ole.

@mavrosxristoforos
Copy link
Contributor Author

Thanks! I have created the pull request as suggested. Please revise whenever you can.

@gardiner
Copy link
Owner

Thank you!

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