Make WordPress Core

Ticket #53261: 53261.2.diff

File 53261.2.diff, 963 bytes (added by kapilpaul, 4 years ago)

Created patch with updated coding standard.

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

    diff --git a/src/js/_enqueues/vendor/plupload/handlers.js b/src/js/_enqueues/vendor/plupload/handlers.js
    index 42d174f689..784b9cb2dd 100644
    a b function prepareMediaItemInit( fileObj ) { 
    149149        jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) );
    150150
    151151        // Bind Ajax to the new Delete button.
    152         jQuery( 'a.delete', item ).on(
    153                 'click',
    154                 function(){
     152        jQuery( 'a.delete', item ).on( 'click', function(){
    155153                // Tell the server to delete it. TODO: Handle exceptions.
    156154                jQuery.ajax({
    157155                        url: ajaxurl,
    function prepareMediaItemInit( fileObj ) { 
    169167        });
    170168
    171169        // Bind Ajax to the new Undo button.
    172         jQuery( 'a.undo', item ).on(
    173                 'click',
    174                 function(){
     170        jQuery( 'a.undo', item ).on( 'click', function(){
    175171                // Tell the server to untrash it. TODO: Handle exceptions.
    176172                jQuery.ajax({
    177173                        url: ajaxurl,