We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b870405 commit 76afb14Copy full SHA for 76afb14
assets/script.js
@@ -150,8 +150,9 @@ function fallbackCopyTextToClipboard(text) {
150
151
//search submit
152
function submitSearch(e) {
153
- e.preventDefault();
154
- var newLocation = $(this).find('#lookup-box').val().toLowerCase();
+ e.preventDefault();
+ var submitId=$(this).closest('form').attr('id')
155
+ var newLocation = $('#'+submitId +' #lookup-box').val().toLowerCase();
156
document.location = '/' + encodeURIComponent((newLocation.length && newLocation[0] == '/') ? newLocation.slice(1) : newLocation);
157
}
158
//google analytics
0 commit comments