jQuery-ize the 404 page Google search

This commit is contained in:
Jeff Atwood 2014-10-20 00:19:40 -07:00
parent 147e4bf056
commit 6b209f0d7e
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@
<script language="Javascript">
function google_button_clicked(e) {
var searchValue = document.getElementById('user-query').value;
document.getElementById('google-query').value = 'site:<%= local_domain %> ' + searchValue;
$('google-query').value = 'site:<%= local_domain %> ' + $('user-query').value;
return true;
}