- Timestamp:
- 02/04/2022 01:20:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/ajax-response.js
r52170 r52672 28 28 response = { action: th.attr('action'), what: child.get(0).nodeName, id: child.attr('id'), oldId: child.attr('old_id'), position: child.attr('position') }; 29 29 response.data = jQuery( 'response_data', child ).text(); 30 successmsg += response.data; 30 if ( jQuery( 'body' ).hasClass( 'edit-tags-php' ) ) { 31 successmsg += response.data; 32 } 31 33 response.supplemental = {}; 32 34 if ( !jQuery( 'supplemental', child ).children().each( function() { … … 51 53 re.html( '<div class="error">' + err + '</div>' ); 52 54 wp.a11y.speak( err ); 53 } else {55 } else if ( successmsg.length ) { 54 56 re.html( '<div class="updated notice is-dismissible"><p>' + successmsg + '</p></div>'); 55 57 jQuery(document).trigger( 'wp-updates-notice-added' );
Note: See TracChangeset
for help on using the changeset viewer.