[icinga-checkins] icinga.org: icinga-core/fix/downtime-cleanup-4815: classic-ui: changed delay for live search #1657

git at icinga.org git at icinga.org
Mon Nov 4 22:53:54 CET 2013


Module: icinga-core
Branch: fix/downtime-cleanup-4815
Commit: 6400160f48117896568fd4141495fd81e203a3e8
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=6400160f48117896568fd4141495fd81e203a3e8

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Fri Oct 18 07:51:45 2013 +0200

classic-ui: changed delay for live search #1657

Set the delay to 700ms. Otherwise it would start
searching before finished typing.

refs: #1657

---

 html/js/autocomplete.js.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/js/autocomplete.js.in b/html/js/autocomplete.js.in
index d31ce6e..8e4bb50 100644
--- a/html/js/autocomplete.js.in
+++ b/html/js/autocomplete.js.in
@@ -47,7 +47,7 @@ $(document).ready(function() {
   });
 
   // autocomplete function
-  $("#autocomplete").catcomplete( { minLength: min_char }, {
+  $("#autocomplete").catcomplete( { minLength: min_char, delay : 700 }, {
     // select function is used to open url for selected item
     select: function( event, ui ) { top.frames['main'].location.href = ui.item.url },
     // get results from icinga API





More information about the icinga-checkins mailing list