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

dragdropcheckbox triggers 'changed' on form #3

Closed
dasplan opened this issue Jul 31, 2012 · 2 comments
Closed

dragdropcheckbox triggers 'changed' on form #3

dasplan opened this issue Jul 31, 2012 · 2 comments

Comments

@dasplan
Copy link

dasplan commented Jul 31, 2012

Hi,

I've noticed that a click on the "Allow drag/drop" checkbox adds the class 'changed' on the form (via jquery.changetracker.js). This can be prevented by adding the class 'no-change-track' to the checkbox (in GridFieldSortableRows.ss, LeftAndMain.EditForm.js setsup jquery.changetracker.js to ignore fields with this class).

I'm using it with ModelAdmin right now to make the list ('searchresults') sortable. When I click away from the current model listview to another after sorting, I get the popup that my form wasn't saved.

Greetings and keep up the good work!

@UndefinedOffset
Copy link
Owner

Fixed in master, thanks :)

@dasplan
Copy link
Author

dasplan commented Jul 31, 2012

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