Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove JS that handled not-quite-placeholder.
- Loading branch information
Ben Hamill
committed
Mar 2, 2013
1 parent
5842f5a
commit a2f5836
Showing
1 changed file
with
0 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
$(document).ready(function() { | ||
if (window.location.href.search(/query=/) == -1) { | ||
$('#query').one('click, focus', function() { | ||
$(this).val(''); | ||
}); | ||
} | ||
|
||
$(document).bind('keyup', function(event) { | ||
if ($(event.target).is(':input')) { | ||
return; | ||
} | ||
|
||
if (event.which == 83) { | ||
$('#query').focus(); | ||
} | ||
}); | ||
|
||
$('#version_for_stats').change(function() { | ||
window.location.href = $(this).val(); | ||
}); | ||
|
||
}); |