Changeset 25667
- Timestamp:
- 10/02/2013 08:52:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/inline-edit-post.js
r25663 r25667 224 224 225 225 save : function(id) { 226 var params, fields, pa rent_ID, page = $('.post_status_page').val() || '';226 var params, fields, page = $('.post_status_page').val() || ''; 227 227 228 228 if ( typeof(id) == 'object' ) … … 241 241 fields = $('#edit-'+id+' :input').serialize(); 242 242 params = fields + '&' + $.param(params); 243 244 // parent ID for repositioning pages if their parent is modified245 parent_ID = $('#post_parent').val() || 0;246 243 247 244 // make ajax request … … 254 251 $(inlineEditPost.what+id).remove(); 255 252 $('#edit-'+id).before(r).remove(); 256 if( parent_ID ){257 if( $(inlineEditPost.what + parent_ID).length == 0 ) // parent does not exist on this page258 return;259 260 $(inlineEditPost.what + parent_ID).after( $(inlineEditPost.what + id) );261 // redo alternates262 $('#the-list>tr:odd').addClass("alternate");263 $('#the-list>tr:even').removeClass("alternate");264 }265 253 $(inlineEditPost.what+id).hide().fadeIn(); 266 254 } else {
Note: See TracChangeset
for help on using the changeset viewer.