Revision 15b67fd5
Von Sven Schöling vor fast 9 Jahren hinzugefügt
js/quicksearch_input.js | ||
---|---|---|
15 | 15 |
if (!value) |
16 | 16 |
return true; |
17 | 17 |
|
18 |
var url = "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=" + encodeURIComponent(value); |
|
18 |
url = { |
|
19 |
frame_header_contact_search: "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=", |
|
20 |
frame_header_parts_search: "ic.pl?action=generate_report&INPUT_ENCODING=utf-8&searchitems=assembly&all=" |
|
21 |
}[element.attr('id')]; |
|
19 | 22 |
|
20 |
window.location.href = url; |
|
23 |
window.location.href = url + encodeURIComponent(value);
|
|
21 | 24 |
|
22 | 25 |
return false; |
23 | 26 |
} |
24 |
$(function(){ $('#frame_header_contact_search').keydown(on_keydown_quicksearch) }); |
|
27 |
$(function(){ |
|
28 |
$('#frame_header_contact_search').keydown(on_keydown_quicksearch); |
|
29 |
$('#frame_header_parts_search').keydown(on_keydown_quicksearch); |
|
30 |
}); |
Auch abrufbar als: Unified diff
Erzeugnissuche