394395396397398399400401402403404
private boolean onDocumentClick(Event e) { Element target = e.getEventTarget().cast(); GQuery $e = $(target); // Ensure that the user didn't click on the tooltip if ($e.parents("." + style.tooltip()).length() == 0) { hide(); } return false; }
523524525526527528529530531532533
Element target = e.getEventTarget().cast(); GQuery $e = $(target); if (activeField && !($e.hasClass(css.searchChoice()) || !$e.parents("." + css.searchChoice()).isEmpty()) && !resultsShowing) { resultsShow(); } return true; }
578579580581582583584585586587588
searchField.val(""); } $(document).click(clickTestAction); resultsShow(); } else if (!isMultiple && !$e.isEmpty() && ($e.get(0) == selectedItem.get(0) || $e.parents("a." + css.chznSingle()).length() > 0)) { e.preventDefault(); resultsToggle(); } activateField(e);
12691270127112721273127412751276127712781279
private boolean searchResultsMouseOut(Event e) { Element targetEl = e.getEventTarget().cast(); GQuery $e = $(targetEl); if ($e.hasClass(css.activeResult()) || $e.parents("." + css.activeResult()).length() > 0) { resultClearHighlight(); } return false; }
14981499150015011502150315041505150615071508
private boolean testActiveClick(Event e) { Element target = e.getEventTarget().cast(); GQuery $e = $(target); if ($e.parents("#" + containerId).length() > 0) { activeField = true; } else { closeField(); } return false;
10431044104510461047104810491050105110521053
12311232123312341235123612371238123912401241
402403404405406407408409410411412
Element target = e.getEventTarget().cast(); GQuery $e = $(target); if (activeField && !($e.hasClass(css.searchChoice()) || !$e.parents("." + css.searchChoice()).isEmpty()) && !resultsShowing) { resultsShow(); } return false; }
459460461462463464465466467468469
10561057105810591060106110621063106410651066