Opened 18 months ago
Last modified 18 months ago
#19675 new enhancement
Add a jQuery triggers to the widget save action
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Widgets | Version: | 3.3 |
| Severity: | major | Keywords: | |
| Cc: | scribu, johnbillion@… |
Description
Line 241 (widgets.dev.js):
$(document).trigger('saved_widget);
or something...
This way we could nicely hook our own js on that "saved_widget" event, instead of stuffing our js inside the widget form function.
This is relevant for all events created by WordPress in the administration area, not just widget-save.
Think of it like "add_action" for javascript...
Change History (2)
Note: See
TracTickets for help on using
tickets.