We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not sure when it broke, but the line
<script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
no longer works and throws a JS error. I fixed it in my project by replacing it with this:
<script type="text/javascript">$('form#{{ opts.model_name }}_form :input:not(.btn):visible:enabled:first').focus() </script>
The text was updated successfully, but these errors were encountered:
Yes, there is pull request ready for this, i will fix it soon: #290
Sorry, something went wrong.
Fixes change_form first field focus. Fixes #290 #295
4ec2408
No branches or pull requests
I'm not sure when it broke, but the line
<script type="text/javascript">document.getElementById("{{ adminform.first_field.id_for_label }}").focus();</script>
no longer works and throws a JS error. I fixed it in my project by replacing it with this:
<script type="text/javascript">$('form#{{ opts.model_name }}_form :input:not(.btn):visible:enabled:first').focus() </script>
The text was updated successfully, but these errors were encountered: