diff --git a/src/js/_enqueues/vendor/plupload/handlers.js b/src/js/_enqueues/vendor/plupload/handlers.js
index 884d8596fc..42d174f689 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 ).click( function(){ |
| | 152 | jQuery( 'a.delete', item ).on( |
| | 153 | 'click', |
| | 154 | function(){ |
| 153 | 155 | // Tell the server to delete it. TODO: Handle exceptions. |
| 154 | 156 | jQuery.ajax({ |
| 155 | 157 | url: ajaxurl, |
| … |
… |
function prepareMediaItemInit( fileObj ) { |
| 167 | 169 | }); |
| 168 | 170 | |
| 169 | 171 | // Bind Ajax to the new Undo button. |
| 170 | | jQuery( 'a.undo', item ).click( function(){ |
| | 172 | jQuery( 'a.undo', item ).on( |
| | 173 | 'click', |
| | 174 | function(){ |
| 171 | 175 | // Tell the server to untrash it. TODO: Handle exceptions. |
| 172 | 176 | jQuery.ajax({ |
| 173 | 177 | url: ajaxurl, |