Changes between Version 1 and Version 2 of Ticket #31412, comment 1
- Timestamp:
- 02/22/2015 10:51:38 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31412, comment 1
v1 v2 24 24 25 25 {{{ 26 edit: function( text, callback) {26 edit: function( text, update ) { 27 27 var gallery = wp.media.gallery, 28 28 frame = gallery.edit( text ); 29 29 30 30 frame.state( 'gallery-edit' ).on( 'update', function( selection ) { 31 callback( gallery.shortcode( selection ).string() );31 update( gallery.shortcode( selection ).string() ); 32 32 } ); 33 33