projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[kivitendo-erp.git]
/
js
/
quicksearch_input.js
diff --git
a/js/quicksearch_input.js
b/js/quicksearch_input.js
index
055b5f3
..
e281f94
100644
(file)
--- a/
js/quicksearch_input.js
+++ b/
js/quicksearch_input.js
@@
-1,5
+1,6
@@
-function on_keydown_quicksearch(e
lement, e
vent) {
+function on_keydown_quicksearch(event) {
var key;
var key;
+ var element = $(this);
if (window.event)
key = window.event.keyCode; // IE
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);
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;
}
window.location.href = url;
return false;
}
+$(function(){ $('#frame_header_contact_search').keydown(on_keydown_quicksearch) });