$(function() {
  $('body').on('click', '[data-apos-search-filter]', function() {
    $(this).closest('form').submit();
  });
  $('body').on('keyup', '[data-apos-search-field]').keyup(function (e) {
    if (e.keyCode == 13) {
      $(this).closest('form').submit();
      return false;
    }
  });
});

$(function() {
  $('body').on('click', '[data-apos-search-filter]', function() {
    $(this).closest('form').submit();
  });
  $('body').on('keyup', '[data-apos-search-field]', function (e) {
    if (e.keyCode == 13) {
      $(this).closest('form').submit();
      return false;
    }
  });
});

Fix typo on a keyup handler that was causing chrome to throw errors on every key press
Fix typo on a keyup handler that was causing chrome to throw errors on every key press
