Ticket #54955: 54995.2.patch
| File 54995.2.patch, 1.2 KB (added by , 4 years ago) |
|---|
-
src/js/_enqueues/lib/ajax-response.js
27 27 var th = jQuery(this), child = jQuery(this.firstChild), response; 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() { 33 35 response.supplemental[this.nodeName] = jQuery(this).text(); … … 50 52 if ( err.length ) { 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' ); 56 58 wp.a11y.speak( successmsg );