Fix quick editing of last page in Edit Pages, props yoshi, fixes #8044

git-svn-id: https://develop.svn.wordpress.org/trunk@9495 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-03 17:37:20 +00:00
parent 0bd6d820f0
commit eaa36ee402
2 changed files with 6 additions and 4 deletions

View File

@ -160,7 +160,9 @@ inlineEditPost = {
if ( pageOpt.length > 0 ) {
var pageLevel = pageOpt[0].className.split('-')[1], nextPage = pageOpt, pageLoop = true;
while ( pageLoop ) {
var nextPage = nextPage.next('option'), nextLevel = nextPage[0].className.split('-')[1];
var nextPage = nextPage.next('option');
if (nextPage.length == 0) break;
var nextLevel = nextPage[0].className.split('-')[1];
if ( nextLevel <= pageLevel ) {
pageLoop = false;
} else {

View File

@ -2545,17 +2545,17 @@ fieldset {
.inline-editor .modified input {
padding: 2px 1px;
margin: 1px;
width: 18px;
width: 2em;
}
.inline-editor .date input[name="aa"],
.inline-editor .modified input[name="aa"] {
width: 30px;
width: 3.5em;
}
#wpbody-content .inline-editor .date select,
#wpbody-content .inline-editor .modified select {
width: 80px;
width: 6em;
}
.inline-editor .categories,