wp/wp-admin/js/custom-header.js
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 18 be944660c56a
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
    31 		 * Opens the 'choose from library' frame and creates it if it doesn't exist.
    31 		 * Opens the 'choose from library' frame and creates it if it doesn't exist.
    32 		 *
    32 		 *
    33 		 * @since 3.5.0
    33 		 * @since 3.5.0
    34 		 * @deprecated 4.1.0
    34 		 * @deprecated 4.1.0
    35 		 *
    35 		 *
    36 		 * @returns {void}
    36 		 * @return {void}
    37 		 */
    37 		 */
    38 		$('#choose-from-library-link').click( function( event ) {
    38 		$('#choose-from-library-link').click( function( event ) {
    39 			var $el = $(this);
    39 			var $el = $(this);
    40 			event.preventDefault();
    40 			event.preventDefault();
    41 
    41 
    69 			 * Updates the window location to include the selected attachment.
    69 			 * Updates the window location to include the selected attachment.
    70 			 *
    70 			 *
    71 			 * @since 3.5.0
    71 			 * @since 3.5.0
    72 			 * @deprecated 4.1.0
    72 			 * @deprecated 4.1.0
    73 			 *
    73 			 *
    74 			 * @returns {void}
    74 			 * @return {void}
    75 			 */
    75 			 */
    76 			frame.on( 'select', function() {
    76 			frame.on( 'select', function() {
    77 				// Grab the selected attachment.
    77 				// Grab the selected attachment.
    78 				var attachment = frame.state().get('selection').first(),
    78 				var attachment = frame.state().get('selection').first(),
    79 					link = $el.data('updateLink');
    79 					link = $el.data('updateLink');