Skip to main content

City of Burlington, Housing Board of Review

Citation
City of Burlington, Housing Board of Review
Jurisdiction
Burlington (municipal)
Source
Official source

Full Text

1,158 chars
respondToPendingAutoComplete([]);
},
complete: function (xmlhttprequest) {
if (currentAutoCompleteRequest === xmlhttprequest) {
currentAutoCompleteRequest = null;
currentAutoCompleteRequestKey = null;
}
}
});
}, options.delay);
};
}

// click handler for search buttons
$(buttonSelector).click(function (e) {
e.preventDefault();
var $btn = $(this);
var $field = $btn.siblings(".widgetSearchBox");
var term = $field.val() + "";
if (!shouldSearch(term)) {
// do nothing until user types enough characters
$field.focus();
return;
}

if ($(checkboxSelector).is(':checked') || false)
{
doWidgetSearch($.trim(term), Number(0));
}
else {
doWidgetSearch($.trim(term), 0);
}
});

// enter key handler for the search field
$(searchFieldSelector).keypress(function (e) {
var code = e.which || e.keyCode;
if (code === 13) {
e.preventDefault();
var $this = $(this);
var term = $this.val() + "";
if (!shouldSearch(term)) {
// do nothing until user types enough characters
$this.focus();
return false;
}

if ($(checkboxSelector).is(':checked') || false) {
doWidgetSearch($.trim(term), Number(0));
} else {
doWidgetSearch($.trim(term), 0);
}
return false;
}
return true;
});