Force menu AYS when a menu item is deleted. props ocean90, see #13525.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2bd40396a9
commit
4d5114ff86
|
@ -790,6 +790,7 @@ var wpNavMenu;
|
|||
eventOnClickMenuItemDelete : function(clickedEl) {
|
||||
var itemID = parseInt(clickedEl.id.replace('delete-', ''), 10);
|
||||
api.removeMenuItem( $('#menu-item-' + itemID) );
|
||||
api.registerChange();
|
||||
return false;
|
||||
},
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue