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
This commit is contained in:
nacin 2010-05-02 18:12:13 +00:00
parent bbe76ccd6e
commit c32241fc4b
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ var WPNavMenuHandler = function () {
var activePanel, var activePanel,
panelIdMatch = /#(.*)$/.exec(e.target.href), panelIdMatch = /#(.*)$/.exec(e.target.href),
tabPanels, tabPanels,
wrapper = getParentWrapper(e.target, 'inside'), wrapper = $(e.target).parents('.inside').first()[0],
inputs = wrapper ? wrapper.getElementsByTagName('input') : [], inputs = wrapper ? wrapper.getElementsByTagName('input') : [],
i = inputs.length; i = inputs.length;