Changeset 38219 for branches/4.6
- Timestamp:
- 08/08/2016 10:51:40 PM (8 years ago)
- Location:
- branches/4.6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
-
branches/4.6/src/wp-admin/js/theme.js
r38084 r38219 598 598 wp.updates.maybeRequestFilesystemCredentials( event ); 599 599 600 $( document ).on( 'wp- install-theme-success', function( event, response ) {600 $( document ).on( 'wp-theme-install-success', function( event, response ) { 601 601 if ( _this.model.get( 'id' ) === response.slug ) { 602 602 _this.model.set( { 'installed': true } ); … … 800 800 wp.updates.maybeRequestFilesystemCredentials( event ); 801 801 802 $( document ).one( 'wp- delete-theme-success', function( event, response ) {802 $( document ).one( 'wp-theme-delete-success', function( event, response ) { 803 803 _this.$el.find( '.close' ).trigger( 'click' ); 804 804 $( '[data-slug="' + response.slug + '"' ).css( { backgroundColor:'#faafaa' } ).fadeOut( 350, function() { … … 973 973 wp.updates.maybeRequestFilesystemCredentials( event ); 974 974 975 $( document ).on( 'wp- install-theme-success', function() {975 $( document ).on( 'wp-theme-install-success', function() { 976 976 _this.model.set( { 'installed': true } ); 977 977 } ); -
branches/4.6/src/wp-admin/js/updates.js
r38210 r38219 1072 1072 $message; 1073 1073 1074 $document.trigger( 'wp- install-theme-success', response );1074 $document.trigger( 'wp-theme-install-success', response ); 1075 1075 1076 1076 $message = $card.find( '.button-primary' ) … … 1244 1244 wp.a11y.speak( wp.updates.l10n.deleted, 'polite' ); 1245 1245 1246 $document.trigger( 'wp- delete-theme-success', response );1246 $document.trigger( 'wp-theme-delete-success', response ); 1247 1247 }; 1248 1248
Note: See TracChangeset
for help on using the changeset viewer.