WordPress.org

Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#19675 new enhancement

Add a jQuery triggers to the widget save action

Reported by: digitalnature 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)

comment:1 scribu18 months ago

  • Cc scribu added

comment:2 johnbillion18 months ago

  • Cc johnbillion@… added
Note: See TracTickets for help on using tickets.