Skip to content

Instantly share code, notes, and snippets.

@dmishe
Created August 6, 2009 09:26
Show Gist options
  • Save dmishe/163212 to your computer and use it in GitHub Desktop.
Save dmishe/163212 to your computer and use it in GitHub Desktop.
// Search
$("#searchButton").click(function() {
var id = $("#id_word_1").val();
if (id) {
location.replace("/dictionary/redirect/" + id + "/");
return;
}
});
$("#searchTop").submit(function() {
var id = $("#id_word_1").val();
if (id) {
location.replace("/dictionary/redirect/" + id + "/");
return false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment