Opened 10 years ago
Last modified 7 years ago
#36956 new enhancement
Trigger event when taxonomy term is added with ajax
| Reported by: | johnjamesjacoby | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion has-patch |
| Cc: | Focuses: | administration |
Description
When adding a taxonomy term via ajax, it would be nice if some JavaScript event was triggered, maybe on .wp-list-table.tags or the newly added row itself.
This would give taxonomy term plugins some event to listen for and take action on.
Something akin to:
this.trigger( 'term-added' );
Maybe tag-added is more appropriate, since all of those form elements seem to use tag for everything, regardless of the taxonomy.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Adds the
term-addedtrigger on successful Ajax term add