Revert [25663] for UX discussion
Built from https://develop.svn.wordpress.org/trunk@25667 git-svn-id: http://core.svn.wordpress.org/trunk@25583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7de2054ece
commit
ea352cde7c
|
@ -223,7 +223,7 @@ inlineEditPost = {
|
|||
},
|
||||
|
||||
save : function(id) {
|
||||
var params, fields, parent_ID, page = $('.post_status_page').val() || '';
|
||||
var params, fields, page = $('.post_status_page').val() || '';
|
||||
|
||||
if ( typeof(id) == 'object' )
|
||||
id = this.getId(id);
|
||||
|
@ -240,9 +240,6 @@ inlineEditPost = {
|
|||
|
||||
fields = $('#edit-'+id+' :input').serialize();
|
||||
params = fields + '&' + $.param(params);
|
||||
|
||||
// parent ID for repositioning pages if their parent is modified
|
||||
parent_ID = $('#post_parent').val() || 0;
|
||||
|
||||
// make ajax request
|
||||
$.post( ajaxurl, params,
|
||||
|
@ -253,15 +250,6 @@ inlineEditPost = {
|
|||
if ( -1 != r.indexOf('<tr') ) {
|
||||
$(inlineEditPost.what+id).remove();
|
||||
$('#edit-'+id).before(r).remove();
|
||||
if( parent_ID ){
|
||||
if( $(inlineEditPost.what + parent_ID).length == 0 ) // parent does not exist on this page
|
||||
return;
|
||||
|
||||
$(inlineEditPost.what + parent_ID).after( $(inlineEditPost.what + id) );
|
||||
// redo alternates
|
||||
$('#the-list>tr:odd').addClass("alternate");
|
||||
$('#the-list>tr:even').removeClass("alternate");
|
||||
}
|
||||
$(inlineEditPost.what+id).hide().fadeIn();
|
||||
} else {
|
||||
r = r.replace( /<.[^<>]*?>/g, '' );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue