Ticket #25573: inline-edit-post.js.diff
File inline-edit-post.js.diff, 753 bytes (added by , 11 years ago) |
---|
-
trunk/src/wp-admin/js/inline-edit-post.js
218 218 }, 219 219 220 220 save : function(id) { 221 222 if ( inlineEditPost.isSaving() ) 223 return false; 224 221 225 var params, fields, page = $('.post_status_page').val() || ''; 222 226 223 227 if ( typeof(id) == 'object' ) … … 286 290 var id = $(o).closest('tr').attr('id'), 287 291 parts = id.split('-'); 288 292 return parts[parts.length - 1]; 293 }, 294 295 isSaving : function() { 296 return $('table.widefat .spinner').is(':visible'); 289 297 } 298 299 290 300 }; 291 301 292 302 $( document ).ready( function(){ inlineEditPost.init(); } );