Check for deleted menus or something. It fixes a JS error. props koopersmith, see #13215.
git-svn-id: https://develop.svn.wordpress.org/trunk@14394 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2f0d602eeb
commit
80ee3d1d2d
|
@ -409,9 +409,10 @@ var WPNavMenuHandler = function ($) {
|
||||||
|
|
||||||
$.fn.extend({
|
$.fn.extend({
|
||||||
makeTabVisible : function() {
|
makeTabVisible : function() {
|
||||||
var t = this.eq(0),
|
var t = this.eq(0), left, right;
|
||||||
left = t.offset().left,
|
if( ! t.length ) return;
|
||||||
right = left + t.outerWidth();
|
left = t.offset().left;
|
||||||
|
right = left + t.outerWidth();
|
||||||
if( right > fixedRight )
|
if( right > fixedRight )
|
||||||
fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px', }, 'fast');
|
fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px', }, 'fast');
|
||||||
else if ( left < fixedLeft )
|
else if ( left < fixedLeft )
|
||||||
|
|
Loading…
Reference in New Issue