WordPress.org

Make WordPress Core

Changeset 9588


Ignore:
Timestamp:
11/10/2008 10:50:37 AM (10 years ago)
Author:
azaozz
Message:

Fix QE for the last category, fixes #8077

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/inline-edit-tax.js

    r9566 r9588  
    7070            var pageLevel = pageOpt[0].className.split('-')[1], nextPage = pageOpt, pageLoop = true;
    7171            while ( pageLoop ) {
    72                 var nextPage = nextPage.next('option'), nextLevel = nextPage[0].className.split('-')[1];
     72                var nextPage = nextPage.next('option');
     73                if (nextPage.length == 0) break;
     74                var nextLevel = nextPage[0].className.split('-')[1];
    7375                if ( nextLevel <= pageLevel ) {
    7476                    pageLoop = false;
Note: See TracChangeset for help on using the changeset viewer.