From c32241fc4b9df1f68b2d6882a0d039840729f0d0 Mon Sep 17 00:00:00 2001 From: nacin Date: Sun, 2 May 2010 18:12:13 +0000 Subject: [PATCH] Fix ajax on add menu item boxes. props koopersmith, see #13204 git-svn-id: http://svn.automattic.com/wordpress/trunk@14332 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/js/nav-menu.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/nav-menu.dev.js b/wp-admin/js/nav-menu.dev.js index e5bede045a..b246332d69 100644 --- a/wp-admin/js/nav-menu.dev.js +++ b/wp-admin/js/nav-menu.dev.js @@ -251,7 +251,7 @@ var WPNavMenuHandler = function () { var activePanel, panelIdMatch = /#(.*)$/.exec(e.target.href), tabPanels, - wrapper = getParentWrapper(e.target, 'inside'), + wrapper = $(e.target).parents('.inside').first()[0], inputs = wrapper ? wrapper.getElementsByTagName('input') : [], i = inputs.length;