Changeset 24371
- Timestamp:
- 05/26/2013 08:49:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/jquery/suggest.js
r21592 r24371 19 19 20 20 $input = $(input).attr("autocomplete", "off"); 21 $results = $( document.createElement("ul"));21 $results = $("<ul/>"); 22 22 23 23 timeout = false; // hold timeout ID for suggestion results to appear … … 38 38 }); 39 39 40 41 // help IE users if possible 42 if ( $.browser.msie ) { 43 try { 44 $results.bgiframe(); 45 } catch(e) { } 46 } 47 48 // I really hate browser detection, but I don't see any other way 49 if ($.browser.mozilla) 50 $input.keypress(processKey); // onkeypress repeats arrow keys in Mozilla/Opera 51 else 52 $input.keydown(processKey); // onkeydown repeats arrow keys in IE/Safari 53 54 55 40 $input.keydown(processKey); 56 41 57 42 function resetPosition() {
Note: See TracChangeset
for help on using the changeset viewer.