Skip to content

Commit 7ae3099

Browse files
authored
Merge pull request #1723 from NCowoski/master
Update script.js
2 parents 6fd54ba + 76afb14 commit 7ae3099

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assets/script.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ function fallbackCopyTextToClipboard(text) {
150150

151151
//search submit
152152
function submitSearch(e) {
153-
e.preventDefault();
154-
var newLocation = $(this).find('#lookup-box').val().toLowerCase();
153+
e.preventDefault();
154+
var submitId=$(this).closest('form').attr('id')
155+
var newLocation = $('#'+submitId +' #lookup-box').val().toLowerCase();
155156
document.location = '/' + encodeURIComponent((newLocation.length && newLocation[0] == '/') ? newLocation.slice(1) : newLocation);
156157
}
157158
//google analytics

0 commit comments

Comments
 (0)