Ticket #25696: 25696.patch
File 25696.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/inline-edit-post.js
50 50 // add events 51 51 $('#the-list').on( 'click', 'a.editinline', function( e ) { 52 52 e.preventDefault(); 53 // Don't open a new Quick Edit form when a previous Quick Edit request has not completed yet. 54 if ( inlineEditPost.xhr && inlineEditPost.xhr.readyState !== 4 ) { 55 return; 56 } 53 57 inlineEditPost.edit(this); 54 58 }); 55 59 … … 264 268 fields = $('#edit-'+id).find(':input').serialize(); 265 269 params = fields + '&' + $.param(params); 266 270 267 // make ajax request 268 $.post( ajaxurl, params, 271 // Abort the AJAX request if there's already one in progress. 272 if ( inlineEditPost.xhr && inlineEditPost.xhr.readyState !== 4 ) { 273 inlineEditPost.xhr.abort(); 274 } 275 276 // Fire the AJAX request. 277 inlineEditPost.xhr = $.post( ajaxurl, params, 269 278 function(r) { 270 279 $( 'table.widefat .spinner' ).removeClass( 'is-active' ); 271 280 $( '.ac_results' ).hide();