Ticket #42193: 42193.patch
File 42193.patch, 978 bytes (added by , 7 years ago) |
---|
-
src/wp-admin/js/common.js
307 307 $sortables = $('.meta-box-sortables'), 308 308 wpResponsiveActive = false, 309 309 $adminbar = $( '#wpadminbar' ), 310 adminReadonlyTextarea = $( '.wp-admin textarea' ), 310 311 lastScrollPosition = 0, 311 312 pinnedMenuTop = false, 312 313 pinnedMenuBottom = false, … … 327 328 $(e.target).parent().siblings('a').get(0).click(); 328 329 }); 329 330 331 adminReadonlyTextarea.focus( function() { 332 var $this = $( this ); 333 334 if ( $this.is( '[readonly]' ) ) { 335 $this.select(); 336 337 // Work-around for Chrome's issue. 338 $this.mouseup( function() { 339 // Prevent further mouseup intervention. 340 $this.unbind( 'mouseup' ); 341 return false; 342 }); 343 } 344 }); 345 330 346 $( '#collapse-button' ).on( 'click.collapse-menu', function() { 331 347 var viewportWidth = getViewportWidth() || 961; 332 348