[wp-trac] [WordPress Trac] #27491: Widget Customizer: Dynamically-created inputs cause from to replace itself without event to trigger re-initialization
WordPress Trac
noreply at wordpress.org
Fri Mar 28 05:51:25 UTC 2014
#27491: Widget Customizer: Dynamically-created inputs cause from to replace itself
without event to trigger re-initialization
--------------------------+-------------------------
Reporter: westonruter | Owner: ocean90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.9
Component: Widgets | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
--------------------------+-------------------------
Comment (by adamsilverstein):
I tried testing [attachment:27491.2.diff] - after installing I lose live
updating between the widget and the preview:
([http://f.cl.ly/items/0b0n041z3Z0z17192w22//Users/adamsilverstein/Library/Containers/com.monosnap.monosnap/Data/Library/Monosnap/.tmp/screencast%202014-03-27%2022-26-01.mp4
screencast])
can we just use triggers on add new widget and save widget? like -
jQuery( document ).trigger( 'customizer-widget-added', [widget] );
jQuery( document ).trigger( 'customizer-widget-saved', [widget] );
we have similar triggers in heartbeat and autosave, they will get real
hooks when we add those to core but these should work for now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27491#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list