Fix QE for the last category, fixes #8077

git-svn-id: https://develop.svn.wordpress.org/trunk@9588 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2008-11-10 10:50:37 +00:00
parent 747139d188
commit f073cfc404
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ inlineEditTax = {
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 {