Changeset 27276
- Timestamp:
- 02/25/2014 09:02:22 PM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r27266 r27276 2769 2769 2770 2770 this.controller.on( 'activate', this.refresh, this ); 2771 2772 this.controller.on( 'detach', function() { 2773 this.$browser.remove(); 2774 }, this ); 2771 2775 }, 2772 2776 -
trunk/src/wp-includes/js/tinymce/plugins/wpeditimage/plugin.js
r27159 r27276 289 289 updateImage( img, imageData ); 290 290 editor.focus(); 291 frame.detach(); 291 292 }; 292 293 … … 295 296 frame.on( 'close', function() { 296 297 editor.focus(); 297 // editor.selection.select( img ); 298 // editor.nodeChanged(); 298 frame.detach(); 299 299 }); 300 300 -
trunk/src/wp-includes/js/tinymce/plugins/wpgallery/plugin.js
r27239 r27276 74 74 var shortcode = gallery.shortcode( selection ).string(); 75 75 editor.dom.setAttrib( node, 'data-wp-media', window.encodeURIComponent( shortcode ) ); 76 frame.detach(); 76 77 }); 77 78 } else if ( editor.dom.hasClass( node, 'wp-playlist' ) && wp.media.playlist ) { … … 82 83 var shortcode = wp.media.playlist.shortcode( selection ).string(); 83 84 editor.dom.setAttrib( node, 'data-wp-media', window.encodeURIComponent( shortcode ) ); 85 frame.detach(); 84 86 }); 85 87 } else if ( editor.dom.hasClass( node, 'wp-video-playlist' ) && wp.media['video-playlist'] ) { … … 90 92 var shortcode = wp.media['video-playlist'].shortcode( selection ).string(); 91 93 editor.dom.setAttrib( node, 'data-wp-media', window.encodeURIComponent( shortcode ) ); 94 frame.detach(); 92 95 }); 93 96 } else {
Note: See TracChangeset
for help on using the changeset viewer.