[wp-trac] [WordPress Trac] #19675: Add a jQuery triggers to the widget save action
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 27 18:02:52 UTC 2011
#19675: Add a jQuery triggers to the widget save action
---------------------------+-----------------------------
Reporter: digitalnature | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.3
Severity: major | Keywords:
---------------------------+-----------------------------
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...
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19675>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list