Fix QE for the last category, fixes #8077

git-svn-id: http://svn.automattic.com/wordpress/trunk@9588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-10 10:50:37 +00:00
parent 6b5c42cd24
commit fb0c4d0bef
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 {