TopQuickSearch: zwei nicht mehr benötigte javascripte
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 21 Mar 2016 16:33:13 +0000 (17:33 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 22 Mar 2016 16:36:35 +0000 (17:36 +0100)
js/glquicksearch.js [deleted file]
js/quicksearch_input.js [deleted file]

diff --git a/js/glquicksearch.js b/js/glquicksearch.js
deleted file mode 100644 (file)
index 2b8b3df..0000000
+++ /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 (file)
index 02e4cf3..0000000
+++ /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);
-});