Permalink
Browse files

Remove unused parameters from generation URL.

  • Loading branch information...
1 parent f56b221 commit 6939adf67d2ec23023fed964a7c225aefbb9a221 @nerdydrew committed Dec 22, 2016
Showing with 1 addition and 4 deletions.
  1. +1 −4 random.js
View
@@ -1,16 +1,13 @@
// Called when the Generate button is clicked. Gets the form info
// and initiates the AJAX request to generate random Pokémon.
function generateRandom() {
- var n = document.getElementById('n').value;
var ubers = document.getElementById('ubers').checked;
var nfes = document.getElementById('nfes').checked;
- var natures = document.getElementById('natures').checked;
- var sprites = document.getElementById('sprites').checked;
var forms = document.getElementById('forms').checked;
var region = document.getElementById('region').value;
var type = document.getElementById('type').value;
- var url = "pokemon_list.php?n=" + n + "&ubers=" + ubers + "&nfes=" + nfes + "&natures=" + natures + "&sprites=" + sprites + "&forms=" + forms + "&region=" + region + "&type=" + type;
+ var url = "pokemon_list.php?ubers=" + ubers + "&nfes=" + nfes + "&forms=" + forms + "&region=" + region + "&type=" + type;
var xmlhttp = new XMLHttpRequest();

0 comments on commit 6939adf

Please sign in to comment.