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:
parent
bbe76ccd6e
commit
c32241fc4b
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue