X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bbf383bf0e93e42769263af14bdb53737832728a..refs/heads/b-3.3.0:/js/quicksearch_input.js diff --git a/js/quicksearch_input.js b/js/quicksearch_input.js index 055b5f31a..e281f94d3 100644 --- a/js/quicksearch_input.js +++ b/js/quicksearch_input.js @@ -1,5 +1,6 @@ -function on_keydown_quicksearch(element, event) { +function on_keydown_quicksearch(event) { var key; + var element = $(this); if (window.event) key = window.event.keyCode; // IE @@ -16,8 +17,8 @@ function on_keydown_quicksearch(element, event) { var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value); - search_term.val(''); window.location.href = url; return false; } +$(function(){ $('#frame_header_contact_search').keydown(on_keydown_quicksearch) });