Changeset 37339
- Timestamp:
- 05/01/2016 07:53:13 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r37230 r37339 3723 3723 } ); 3724 3724 3725 /*3726 * When activated, let the loader handle redirecting the page.3727 * If no loader exists, redirect the page ourselves (if a url exists).3728 */3729 api.bind( 'activated', function() {3730 if ( parent.targetWindow() )3731 parent.send( 'activated', api.settings.url.activated );3732 else if ( api.settings.url.activated )3733 window.location = api.settings.url.activated;3734 });3735 3736 3725 // Pass titles to the parent 3737 3726 api.bind( 'title', function( newTitle ) { -
trunk/src/wp-includes/js/customize-loader.js
r33911 r37339 151 151 $( window ).on( 'beforeunload', this.beforeunload ); 152 152 153 this.messenger.bind( 'activated', function( location ) {154 if ( location ) {155 window.location = location;156 }157 });158 159 153 this.messenger.bind( 'saved', function () { 160 154 Loader.saved( true );
Note: See TracChangeset
for help on using the changeset viewer.