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:
@@ -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
Reference in New Issue
Block a user