WordPress.org

Make WordPress Core

Changeset 14394


Ignore:
Timestamp:
05/03/2010 07:35:54 PM (8 years ago)
Author:
nacin
Message:

Check for deleted menus or something. It fixes a JS error. props koopersmith, see #13215.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/nav-menu.dev.js

    r14373 r14394  
    410410            $.fn.extend({
    411411                makeTabVisible : function() {
    412                     var t = this.eq(0),
    413                         left = t.offset().left,
    414                         right = left + t.outerWidth();
     412                    var t = this.eq(0), left, right;
     413                    if( ! t.length ) return;
     414                    left = t.offset().left;
     415                    right = left + t.outerWidth();
    415416                    if( right > fixedRight )
    416417                        fluid.animate({ 'margin-left' :  "+=" + (fixedRight - right) + 'px', }, 'fast');
Note: See TracChangeset for help on using the changeset viewer.