Make WordPress Core

Changeset 9495


Ignore:
Timestamp:
11/03/2008 05:37:20 PM (16 years ago)
Author:
azaozz
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r9453 r9495  
    161161            var pageLevel = pageOpt[0].className.split('-')[1], nextPage = pageOpt, pageLoop = true;
    162162            while ( pageLoop ) {
    163                 var nextPage = nextPage.next('option'), nextLevel = nextPage[0].className.split('-')[1];
     163                var nextPage = nextPage.next('option');
     164                if (nextPage.length == 0) break;
     165                var nextLevel = nextPage[0].className.split('-')[1];
    164166                if ( nextLevel <= pageLevel ) {
    165167                    pageLoop = false;
  • trunk/wp-admin/wp-admin.css

    r9493 r9495  
    25462546    padding: 2px 1px;
    25472547    margin: 1px;
    2548     width: 18px;
     2548    width: 2em;
    25492549}
    25502550
    25512551.inline-editor .date input[name="aa"],
    25522552.inline-editor .modified input[name="aa"] {
    2553     width: 30px;
     2553    width: 3.5em;
    25542554}
    25552555
    25562556#wpbody-content .inline-editor .date select,
    25572557#wpbody-content .inline-editor .modified select {
    2558     width: 80px;
     2558    width: 6em;
    25592559}
    25602560
Note: See TracChangeset for help on using the changeset viewer.