Search autocomplete is currently not responding. Please try again later.
').insertAfter($(searchFieldSelector)); } } }), html: true, delay: 0, select: function (event, ui) { $(this).val(ui.item.value); $(this).next().click(); } }); $searchField.data("ui-autocomplete")._renderItem = function (ul, item) { return $("") .data("ui-autocomplete-item", item) .append("" + item.label + "") .appendTo(ul); }; } // keep searchBtnApplyQuery consistent with prefix rule window.searchBtnApplyQuery = function() { var $field = $(searchFieldSelector); var term = $field.val() + ""; if (shouldSearch(term)) { // update href for the icon/button (if present) var btn = document.getElementById("btnSearchIcon"); if (btn) btn.href = "/Search?searchPhrase=" + encodeURIComponent($.trim(term)); } else { var btn = document.getElementById("btnSearchIcon"); if (btn) btn.href = "#"; } }; } catch(e) {} //we're going to eat this error. Autocomplete won't work but we dont wan't to break anything else on the page. });