Changeset 29346
- Timestamp:
- 08/01/2014 08:14:43 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/common.css
r29314 r29346 217 217 min-width: 0; 218 218 padding-top: 1px; 219 } 220 221 body.modal-open { 222 overflow: hidden; 219 223 } 220 224 -
trunk/src/wp-admin/css/themes.css
r29217 r29346 410 410 } 411 411 412 body.theme-overlay-open {413 overflow: hidden;414 }415 416 412 .theme-overlay .theme-header { 417 413 position: absolute; -
trunk/src/wp-admin/js/theme.js
r29217 r29346 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(); … … 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 -
trunk/src/wp-includes/js/media-views.js
r29332 r29346 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'); … … 3243 3246 return this; 3244 3247 } 3248 3249 // Enable page scrolling. 3250 $( 'body' ).removeClass( 'modal-open' ); 3245 3251 3246 3252 // Hide modal and remove restricted media modal tab focus once it's closed -
trunk/src/wp-includes/js/thickbox/thickbox.js
r27080 r29346 47 47 jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>"); 48 48 jQuery("#TB_overlay").click(tb_remove); 49 jQuery( 'body' ).addClass( 'modal-open' ); 49 50 } 50 51 } … … 265 266 jQuery("#TB_closeWindowButton").unbind("click"); 266 267 jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("tb_unload").unbind().remove();}); 268 jQuery( 'body' ).removeClass( 'modal-open' ); 267 269 jQuery("#TB_load").remove(); 268 270 if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
Note: See TracChangeset
for help on using the changeset viewer.