Search is now working

This commit is contained in:
Mike Koch 2015-12-03 21:06:24 -05:00
parent 0c841ce60b
commit eda289931f

View File

@ -4,6 +4,14 @@ $(document).ready(function() {
$('#search-button').click(function() {
var location = getNullableField($('input[name="location"]').val());
var dateFrom = getNullableField($('input[name="from-date"]').val());
var dateTo = getNullableField($('input[name="to-date"]').val());
var severity = $('select[name="severity"]').val();
if (severity == -1) {
severity = null;
}
searchLogs(location, dateFrom, dateTo, severity);
});
});