Allow enter to trigger a new custom link on nav-menus.php. props mattwiebe, fixes #18255.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin
2011-11-16 01:45:11 +00:00
parent c9dcd74bd3
commit a14dd3db8b
3 changed files with 8 additions and 2 deletions

View File

@@ -427,6 +427,12 @@ var wpNavMenu;
}
}
});
$('#add-custom-links input[type="text"]').keypress(function(e){
if ( e.keyCode === 13 ) {
e.preventDefault();
$("#submit-customlinkdiv").click();
}
});
},
/**

File diff suppressed because one or more lines are too long