Ticket #35374: 35374.3.patch
File 35374.3.patch, 1.1 KB (added by , 9 years ago) |
---|
-
src/wp-admin/js/nav-menu.js
854 854 var searchTimer, 855 855 inputEvent; 856 856 857 // Prevent form submission. 858 $( '#nav-menu-meta' ).on( 'submit', function( event ) { 859 event.preventDefault(); 860 }); 861 857 862 /* 858 * Use feature detection to determine whether passwordinputs should use863 * Use feature detection to determine whether inputs should use 859 864 * the `keyup` or `input` event. Input is preferred but lacks support 860 865 * in legacy browsers. See changeset 34078, see also ticket #26600#comment:59 861 866 */ … … 865 870 inputEvent = 'keyup'; 866 871 } 867 872 868 $( '.quick-search' ).on( inputEvent, function( e) {873 $( '.quick-search' ).on( inputEvent, function() { 869 874 var t = $(this); 870 875 871 if( 13 == e.which ) {872 api.updateQuickSearchResults( t );873 return false;874 }875 876 876 if( searchTimer ) clearTimeout(searchTimer); 877 877 878 878 searchTimer = setTimeout(function(){