Changeset 32690
- Timestamp:
- 06/04/2015 04:30:04 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/nav-menu.js
r32175 r32690 818 818 }); 819 819 $('#add-custom-links input[type="text"]').keypress(function(e){ 820 $('#customlinkdiv').removeClass('form-invalid'); 821 820 822 if ( e.keyCode === 13 ) { 821 823 e.preventDefault(); … … 920 922 processMethod = processMethod || api.addMenuItemToBottom; 921 923 922 if ( '' === url || 'http://' == url ) 924 if ( '' === url || 'http://' == url ) { 925 $('#customlinkdiv').addClass('form-invalid'); 923 926 return false; 927 } 924 928 925 929 // Show the ajax spinner
Note: See TracChangeset
for help on using the changeset viewer.