- Timestamp:
- 11/09/2017 04:14:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-controls.js
r42122 r42136 9192 9192 api.unbind( 'change', startAutosaving ); // Ensure startAutosaving only fires once. 9193 9193 9194 api.state( 'saved' ).bind( function( isSaved ) {9194 function onChangeSaved( isSaved ) { 9195 9195 if ( ! isSaved && ! api.settings.changeset.autosaved ) { 9196 9196 api.settings.changeset.autosaved = true; // Once a change is made then autosaving kicks in. 9197 9197 api.previewer.send( 'autosaving' ); 9198 9198 } 9199 } ); 9199 } 9200 api.state( 'saved' ).bind( onChangeSaved ); 9201 onChangeSaved( api.state( 'saved' ).get() ); 9200 9202 9201 9203 /**
Note: See TracChangeset
for help on using the changeset viewer.