Ticket #53261: 53261.3.diff
File 53261.3.diff, 860 bytes (added by , 3 years ago) |
---|
-
src/js/_enqueues/vendor/plupload/handlers.js
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( 'click', function(){ 153 153 // Tell the server to delete it. TODO: Handle exceptions. 154 154 jQuery.ajax({ 155 155 url: ajaxurl, … … 167 167 }); 168 168 169 169 // Bind Ajax to the new Undo button. 170 jQuery( 'a.undo', item ). click(function(){170 jQuery( 'a.undo', item ).on( 'click', function(){ 171 171 // Tell the server to untrash it. TODO: Handle exceptions. 172 172 jQuery.ajax({ 173 173 url: ajaxurl,