diff options
| author | Teddy Wing | 2015-05-24 17:51:32 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2015-05-24 17:51:32 -0400 | 
| commit | 82acf609516e94c2825a1b7e2af7106232bf9c8e (patch) | |
| tree | 60a61f21ff30f1513e099c276a00434b99a1cf1f | |
| parent | ed15eefe0ab87f33d3c3d9e5e2204a7bf508bf70 (diff) | |
| download | Peniquitous-82acf609516e94c2825a1b7e2af7106232bf9c8e.tar.bz2 | |
peniquitous.js: Target "search"-type inputs
Apparently Wikipedia uses `input[type="search"]`. Might as well include
it since that's probably a common type of input for this use case.
| -rw-r--r-- | peniquitous.js | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/peniquitous.js b/peniquitous.js index 83aebf2..746809d 100644 --- a/peniquitous.js +++ b/peniquitous.js @@ -9,10 +9,9 @@  	// Additional types:  	//   * email  	//   * number -	//   * search  	//   * tel  	//   * url -	var all_inputs = document.querySelectorAll('input[type="text"]'); +	var all_inputs = document.querySelectorAll('input[type="text"], input[type="search"]');  	for (var i = 0; i < all_inputs.length; i++) {  		all_inputs[i].addEventListener('keyup', function(e) { | 
