From a97ea1ce30bcaef3f7c5d3ed21895ef0931e2950 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 21 Mar 2016 17:33:13 +0100 Subject: [PATCH] =?utf8?q?TopQuickSearch:=20zwei=20nicht=20mehr=20ben?= =?utf8?q?=C3=B6tigte=20javascripte?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- js/glquicksearch.js | 14 -------------- js/quicksearch_input.js | 30 ------------------------------ 2 files changed, 44 deletions(-) delete mode 100644 js/glquicksearch.js delete mode 100644 js/quicksearch_input.js 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); -}); -- 2.20.1