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 ) { |
| 149 | 149 | jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) ); |
| 150 | 150 | |
| 151 | 151 | // 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(){ |
| 155 | 153 | // Tell the server to delete it. TODO: Handle exceptions. |
| 156 | 154 | jQuery.ajax({ |
| 157 | 155 | url: ajaxurl, |
| … |
… |
function prepareMediaItemInit( fileObj ) { |
| 169 | 167 | }); |
| 170 | 168 | |
| 171 | 169 | // 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(){ |
| 175 | 171 | // Tell the server to untrash it. TODO: Handle exceptions. |
| 176 | 172 | jQuery.ajax({ |
| 177 | 173 | url: ajaxurl, |