From 17274d141ebdb8b636a3f41e350d28c36edf6b93 Mon Sep 17 00:00:00 2001 From: Kyle Huynh Date: Wed, 26 Jan 2022 21:06:32 +0000 Subject: [PATCH] Replace redundent code for obtain the advanced search form --- js/advanced_search.form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/advanced_search.form.js b/js/advanced_search.form.js index b1d5f23..1b99a02 100644 --- a/js/advanced_search.form.js +++ b/js/advanced_search.form.js @@ -114,7 +114,7 @@ if (e.keyCode == 13) { // Cancel the default action on keypress event e.preventDefault(); - $('form#advanced-search-form').submit(); + $form.submit(); } }); });