Ticket #29074: 29074.diff
| File 29074.diff, 2.1 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/common.css
218 218 padding-top: 1px; 219 219 } 220 220 221 body.modal-open { 222 overflow: hidden; 223 } 224 221 225 iframe, 222 226 img { 223 227 border: 0; -
src/wp-admin/css/themes.css
409 409 z-index: 10; 410 410 } 411 411 412 body.theme-overlay-open {413 overflow: hidden;414 }415 416 412 .theme-overlay .theme-header { 417 413 position: absolute; 418 414 top: 0; -
src/wp-admin/js/theme.js
701 701 // Performs the actions to effectively close 702 702 // the theme details overlay 703 703 closeOverlay: function() { 704 $( 'body' ).removeClass( ' theme-overlay-open' );704 $( 'body' ).removeClass( 'modal-open' ); 705 705 this.remove(); 706 706 this.unbind(); 707 707 this.trigger( 'theme:collapse' ); … … 1000 1000 1001 1001 // Sets this.view to 'detail' 1002 1002 this.setView( 'detail' ); 1003 $( 'body' ).addClass( ' theme-overlay-open' );1003 $( 'body' ).addClass( 'modal-open' ); 1004 1004 1005 1005 // Set up the theme details view 1006 1006 this.overlay = new themes.view.Details({ -
src/wp-includes/js/media-views.js
3228 3228 }; 3229 3229 } 3230 3230 3231 // Disable page scrolling. 3232 $( 'body' ).addClass( 'modal-open' ); 3233 3231 3234 $el.show().find( '.media-modal-close' ).focus(); 3232 3235 return this.propagate('open'); 3233 3236 }, … … 3243 3246 return this; 3244 3247 } 3245 3248 3249 // Enable page scrolling. 3250 $( 'body' ).removeClass( 'modal-open' ); 3251 3246 3252 // Hide modal and remove restricted media modal tab focus once it's closed 3247 3253 this.$el.hide().undelegate( 'keydown' ); 3248 3254