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

Fixes #547: jQuery selector expected #579

Merged

Conversation

pitpalme
Copy link
Contributor

@pitpalme pitpalme commented Apr 7, 2022

Django jQuery tabularFormset function exptects first parameter to be a
selector and second parameter to be options.
Seems it used to be different once upon a time and selector was not
required, because function is called on already selected object.
But ... an empty selector is good enough, so we make jQuery happy, for
jQuery being able to make us happy.

Now there's an "Add" link again show in inline tabular form. :)

@pitpalme pitpalme linked an issue Apr 7, 2022 that may be closed by this pull request
@pitpalme pitpalme requested a review from Doca April 7, 2022 21:10
@pitpalme pitpalme enabled auto-merge April 7, 2022 21:11
Django jQuery tabularFormset function exptects first parameter to be a
selector and second parameter to be options.
Seems it used to be different once upon a time and selector was not
required, because function is called on already selected object.
But ... an empty selector is good enough, so we make jQuery happy, for
jQuery being able to make us happy.

Now there's an "Add" link again show in inline tabular form. :)
@pitpalme pitpalme force-pushed the fix/547-javascript-error-in-admin branch from 1cb1b1d to 93ab6b8 Compare April 8, 2022 07:26
Copy link
Contributor

@christophmeissner christophmeissner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@pitpalme pitpalme merged commit cd37d6a into coders4help:develop Apr 8, 2022
@pitpalme pitpalme deleted the fix/547-javascript-error-in-admin branch April 8, 2022 07:37
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

Successfully merging this pull request may close these issues.

Admin: JavaScript error in schedule template change
2 participants