1 2// On load 3$(function(){ 4 var onClearEventHandler = 0; 5 6 function init() { 7 // Bind to search clear button click event 8 $(".search-clear-button").click(clearSearchForm); 9 // listen to clear search event 10 onClearEventHandler = j2w.Search.addClearEventListener(onClearSearch); 11 } 12 init(); 13 14 /** 15 * When the clear button is clicked emit Search Clear event. 16 * @param oEvent 17 */ 18 function clearSearchForm(oEvent) { 19 j2w.Search.emitClearEvent(); 20 stopDefault(oEvent); 21 } 22 23 function onClearSearch() { 24 $("input[name=q]").val("") 25 $("input[name=locationsearch]").val("") 26 } 27 28 function stopDefault(e){ 29 e.preventDefault(); 30 e.stopImmediatePropagation(); 31 } 32});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.