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:
Andrew Nacin
2011-11-07 17:45:24 +00:00
parent 0b5117da6a
commit 611a6118c9
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -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