mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
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:
@@ -409,9 +409,10 @@ var WPNavMenuHandler = function ($) {
|
||||
|
||||
$.fn.extend({
|
||||
makeTabVisible : function() {
|
||||
var t = this.eq(0),
|
||||
left = t.offset().left,
|
||||
right = left + t.outerWidth();
|
||||
var t = this.eq(0), left, right;
|
||||
if( ! t.length ) return;
|
||||
left = t.offset().left;
|
||||
right = left + t.outerWidth();
|
||||
if( right > fixedRight )
|
||||
fluid.animate({ 'margin-left' : "+=" + (fixedRight - right) + 'px', }, 'fast');
|
||||
else if ( left < fixedLeft )
|
||||
|
||||
Reference in New Issue
Block a user