Changeset 22756
- Timestamp:
- 11/21/2012 01:17:10 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/js/customize-controls.js
r22731 r22756 882 882 if ( 9 === event.which ) // tab 883 883 return; 884 var thisHref = $(this).attr('href');885 884 if ( 13 === event.which ) // enter 886 window.location = thisHref;885 parent.send( 'close' ); 887 886 event.preventDefault(); 888 887 }); -
trunk/wp-includes/js/customize-loader.js
r22126 r22756 29 29 event.preventDefault(); 30 30 31 // Store a reference to the link that opened the customizer. 32 Loader.link = $(this); 31 33 // Load the theme. 32 Loader.open( $(this).attr('href') );34 Loader.open( Loader.link.attr('href') ); 33 35 }); 34 36 … … 124 126 125 127 this.trigger( 'close' ); 128 129 // Return focus to link that was originally clicked. 130 if ( this.link ) 131 this.link.focus(); 126 132 }, 127 133
Note: See TracChangeset
for help on using the changeset viewer.