From: Sven Schöling Date: Mon, 21 Mar 2016 16:33:13 +0000 (+0100) Subject: TopQuickSearch: zwei nicht mehr benötigte javascripte X-Git-Tag: release-3.4.1~291 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=a97ea1ce30bcaef3f7c5d3ed21895ef0931e2950;p=kivitendo-erp.git TopQuickSearch: zwei nicht mehr benötigte javascripte --- diff --git a/js/glquicksearch.js b/js/glquicksearch.js deleted file mode 100644 index 2b8b3dfd9..000000000 --- a/js/glquicksearch.js +++ /dev/null @@ -1,14 +0,0 @@ -$(function() { - $( "#glquicksearch" ).autocomplete({ - source: "controller.pl?action=GL/quicksearch", - minLength: 3, - select: function(event, ui) { - var url = ui.item.url; - if(url != '#') { - location.href = url; - } - }, - html: false, - autoFocus: true - }); -}); diff --git a/js/quicksearch_input.js b/js/quicksearch_input.js deleted file mode 100644 index 02e4cf3ea..000000000 --- a/js/quicksearch_input.js +++ /dev/null @@ -1,30 +0,0 @@ -function on_keydown_quicksearch(event) { - var key; - var element = $(this); - - if (window.event) - key = window.event.keyCode; // IE - else - key = event.which; // Firefox - - if (key != 13) - return true; - - var search_term = $(element); - var value = search_term.val(); - if (!value) - return true; - - url = { - frame_header_contact_search: "ct.pl?action=list_contacts&INPUT_ENCODING=utf-8&filter.status=active&search_term=", - frame_header_parts_search: "ic.pl?action=generate_report&INPUT_ENCODING=utf-8&searchitems=assembly&all=" - }[element.attr('id')]; - - window.location.href = url + encodeURIComponent(value); - - return false; -} -$(function(){ - $('#frame_header_contact_search').keydown(on_keydown_quicksearch); - $('#frame_header_parts_search').keydown(on_keydown_quicksearch); -});