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:
parent
6b5c42cd24
commit
fb0c4d0bef
|
@ -69,7 +69,9 @@ inlineEditTax = {
|
||||||
if ( pageOpt.length > 0 ) {
|
if ( pageOpt.length > 0 ) {
|
||||||
var pageLevel = pageOpt[0].className.split('-')[1], nextPage = pageOpt, pageLoop = true;
|
var pageLevel = pageOpt[0].className.split('-')[1], nextPage = pageOpt, pageLoop = true;
|
||||||
while ( pageLoop ) {
|
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 ) {
|
if ( nextLevel <= pageLevel ) {
|
||||||
pageLoop = false;
|
pageLoop = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue