Fire 'onChange' event when adding a new option to a select box
|Reported by:||mishaaq||Owned by:||mishaaq|
|Severity:||Normal||Keywords:||js admin onchange|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
After adding a new option to a select box in admin (by '+' sign) django automatically selects this new option, but it doesn't fire 'onChange' event after that and I think it should. This behaviour could be helpful when there is a js code with an event listener binded to a select box.
This patch adds functionality to fire the event after the change.
Change History (8)
Changed 4 years ago by mishaaq
comment:1 Changed 4 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted