Berichte OE: Bestellnummer des Kunden anzeigen/danach filtern
[kivitendo-erp.git] / js / quicksearch_input.js
1 function on_keydown_quicksearch(element, event) {
2   var key;
3
4   if (window.event)
5     key = window.event.keyCode;   // IE
6   else
7     key = event.which;            // Firefox
8
9   if (key != 13)
10     return true;
11
12   var search_term = $(element);
13   var value       = search_term.val();
14   if (!value)
15     return true;
16
17   var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value);
18
19   search_term.val('');
20   window.location.href = url;
21
22   return false;
23 }