Fire 'onChange' event when adding a new option to a select box
|Reported by:||Michał Żarłok||Owned by:||Michał Żarłok|
|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.