mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 10:59:07 +01:00
Check for deleted menus or something. It fixes a JS error. props koopersmith, see #13215.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a7e2ac2fec
commit
9dd4702113
@ -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
Block a user