List tables: Go back to inserting quick edit rows after, as some plugins rely on that assumption. Results are the same.
fixes #26060. git-svn-id: https://develop.svn.wordpress.org/trunk@31820 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
639f5228c3
commit
6a273462e8
|
@ -133,7 +133,7 @@ inlineEditPost = {
|
||||||
editRow = $('#inline-edit').clone(true);
|
editRow = $('#inline-edit').clone(true);
|
||||||
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
||||||
|
|
||||||
$(t.what+id).hide().before(editRow).before('<tr class="hidden"></tr>');
|
$(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
|
||||||
|
|
||||||
// populate the data
|
// populate the data
|
||||||
rowData = $('#inline_'+id);
|
rowData = $('#inline_'+id);
|
||||||
|
|
|
@ -56,7 +56,7 @@ inlineEditTax = {
|
||||||
editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
|
editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
|
||||||
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
||||||
|
|
||||||
$(t.what+id).hide().before(editRow).before('<tr class="hidden"></tr>');
|
$(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
|
||||||
|
|
||||||
val = $('.name', rowData);
|
val = $('.name', rowData);
|
||||||
val.find( 'img' ).replaceWith( function() { return this.alt; } );
|
val.find( 'img' ).replaceWith( function() { return this.alt; } );
|
||||||
|
|
Loading…
Reference in New Issue