Make WordPress Core

Ticket #53261: 53261.3.diff

File 53261.3.diff, 860 bytes (added by joedolson, 3 years ago)

Refresh patch to base from trunk

  • src/js/_enqueues/vendor/plupload/handlers.js

     
    149149        jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) );
    150150
    151151        // Bind Ajax to the new Delete button.
    152         jQuery( 'a.delete', item ).click( function(){
     152        jQuery( 'a.delete', item ).on( 'click', function(){
    153153                // Tell the server to delete it. TODO: Handle exceptions.
    154154                jQuery.ajax({
    155155                        url: ajaxurl,
     
    167167        });
    168168
    169169        // Bind Ajax to the new Undo button.
    170         jQuery( 'a.undo', item ).click( function(){
     170        jQuery( 'a.undo', item ).on( 'click', function(){
    171171                // Tell the server to untrash it. TODO: Handle exceptions.
    172172                jQuery.ajax({
    173173                        url: ajaxurl,