mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Merge and update variable declarations. fixes #19176.
git-svn-id: https://develop.svn.wordpress.org/trunk@19205 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -123,7 +123,7 @@ inlineEditPost = {
|
||||
},
|
||||
|
||||
edit : function(id) {
|
||||
var t = this, fields, editRow, rowData, cats, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, tax;
|
||||
var t = this, fields, editRow, rowData, status, pageOpt, pageLevel, nextPage, pageLoop = true, nextLevel, cur_format, f;
|
||||
t.revert();
|
||||
|
||||
if ( typeof(id) == 'object' )
|
||||
@@ -152,14 +152,14 @@ inlineEditPost = {
|
||||
}
|
||||
|
||||
// hide unsupported formats, but leave the current format alone
|
||||
var cur_format = $('.post_format', rowData).text();
|
||||
cur_format = $('.post_format', rowData).text();
|
||||
$('option.unsupported', editRow).each(function() {
|
||||
var $this = $(this);
|
||||
if ( $this.val() != cur_format )
|
||||
$this.remove();
|
||||
});
|
||||
|
||||
for ( var f = 0; f < fields.length; f++ ) {
|
||||
for ( f = 0; f < fields.length; f++ ) {
|
||||
$(':input[name="' + fields[f] + '"]', editRow).val( $('.'+fields[f], rowData).text() );
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user