Changeset 20250
- Timestamp:
- 03/22/2012 02:39:03 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/customize-loader.dev.js
r20133 r20250 8 8 this.element = $( '#customize-container' ); 9 9 this.base = $( '.admin-url', this.element ).val(); 10 this.doc_title = $( document ).attr( 'title' );11 10 12 11 this.element.on( 'click', '.close-full-overlay', function() { … … 23 22 params.customize = 'on'; 24 23 25 this.element.append( '<iframe />' ); 26 this.iframe = $( 'iframe' ).attr( 'src', this.base + '?' + jQuery.param( params ) ); 27 28 $('iframe').load( function() { 29 title = $(this).contents().find( 'title' ).text(); 30 $( document ).attr( 'title', title ); 31 }); 24 this.iframe = $( '<iframe />', { 25 src: this.base + '?' + jQuery.param( params ) 26 }).appendTo( this.element ); 32 27 33 28 this.element.fadeIn( 200, function() { … … 40 35 Loader.iframe = null; 41 36 Loader.body.removeClass( 'customize-active full-overlay-active' ); 42 $( document ).attr( 'title', Loader.doc_title );43 37 }); 44 38 }
Note: See TracChangeset
for help on using the changeset viewer.