Ticket #31233: 31233.right.diff
File 31233.right.diff, 2.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
1258 1258 .notice, 1259 1259 div.updated, 1260 1260 div.error { 1261 position: relative; 1261 1262 background: #fff; 1262 1263 border-left: 4px solid #fff; 1263 1264 -webkit-box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 ); … … 1292 1293 border-color: #00a0d2; 1293 1294 } 1294 1295 1296 .notice .hide, 1297 div.updated .hide, 1298 div.error .hide { 1299 display: block; 1300 position: absolute; 1301 top: 10px; 1302 right: 15px; 1303 } 1304 1295 1305 .wrap .notice, 1296 1306 .wrap div.updated, 1297 1307 .wrap div.error, -
src/wp-admin/js/common.js
373 373 $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' ); 374 374 $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading ); 375 375 376 // Make notices dismissable 377 $( 'div.updated, div.error, div.notice' ).each(function(){ 378 var $this = $(this), 379 text = commonL10n.hide || '', 380 $hide = $('<a href="#" class="hide"></a>'); 381 382 // Ensure plain text 383 $hide.text( text ); 384 385 $this.append( $hide ); 386 387 $hide.on('click', function(e){ 388 e.preventDefault(); 389 $this.remove(); 390 }); 391 }); 392 376 393 // Init screen meta 377 394 screenMeta.init(); 378 395 -
src/wp-includes/script-loader.php
79 79 80 80 $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), false, 1 ); 81 81 did_action( 'init' ) && $scripts->localize( 'common', 'commonL10n', array( 82 'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.") 82 'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."), 83 'hide' => __( 'Hide' ), 83 84 ) ); 84 85 85 86 $scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery' ), false, 1 );