wp/wp-includes/js/wplink.js
changeset 21 48c4eec2b7e6
parent 18 be944660c56a
child 22 8c2e4d02f4ef
equal deleted inserted replaced
20:7b1b88e27a20 21:48c4eec2b7e6
   103 
   103 
   104 		open: function( editorId, url, text ) {
   104 		open: function( editorId, url, text ) {
   105 			var ed,
   105 			var ed,
   106 				$body = $( document.body );
   106 				$body = $( document.body );
   107 
   107 
       
   108 			$( '#wpwrap' ).attr( 'aria-hidden', 'true' );
   108 			$body.addClass( 'modal-open' );
   109 			$body.addClass( 'modal-open' );
   109 			wpLink.modalOpen = true;
   110 			wpLink.modalOpen = true;
   110 
   111 
   111 			wpLink.range = null;
   112 			wpLink.range = null;
   112 
   113 
   279 			}
   280 			}
   280 		},
   281 		},
   281 
   282 
   282 		close: function( reset ) {
   283 		close: function( reset ) {
   283 			$( document.body ).removeClass( 'modal-open' );
   284 			$( document.body ).removeClass( 'modal-open' );
       
   285 			$( '#wpwrap' ).removeAttr( 'aria-hidden' );
   284 			wpLink.modalOpen = false;
   286 			wpLink.modalOpen = false;
   285 
   287 
   286 			if ( reset !== 'noReset' ) {
   288 			if ( reset !== 'noReset' ) {
   287 				if ( ! wpLink.isMCE() ) {
   289 				if ( ! wpLink.isMCE() ) {
   288 					wpLink.textarea.focus();
   290 					wpLink.textarea.focus();