#30025: dismiseAddRelatedObjectPopup() not executing change event for select
element
-----------------------------------+--------------------------------------
Reporter: Alexander Todorov | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.1
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Alexander Todorov):
Hi Carlton,
in my particular case we have a styles select widget (bootstrap select)
which will receive the newly added records and it had a change event
defined like so:
{{{
$(select).change(function() { ... })
}}}
this was not triggered. However we changed it to:
{{{
document.getElemebtById(select).onchange = function() { .... }
}}}
and the later handler gets triggered after the popup closes. I'm not quite
certain what is the difference between the jQuery change handler and the
DOM onchange one.
If you think there's nothing Django can do about this you can close this
ticket.
--
Ticket URL: <https://code.djangoproject.com/ticket/30025#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.81c4ad2d53fb7dacfc63d55f74429034%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.