Forum Thread
Daycare bug
Forum-Index → Bug Reports → Resolved → Daycare bug
http://pokeheroes.com/daycare?rem=17151853
Then when you add a pkmn it sends the data to the current link, so
the one above. Since this is the link to remove the pkmn it removes
it again.Fix #1 (Better fix, you shouldn't remove stuff with a GET request)
Page:
daycare
Currently:
There's a link when you click it, it removes the pkmn from the daycare with following code
<a onclick="location.href =
"?rem=17151853";" ... > ... </a>
Proposed code:
<a onclick="function()
{$.post("/daycare", {rem: 17151853}); location.reload();}" ... >
... </a>
Note:
Server side should be changed to work with POST variables instead of GET variables.
Fix #2
Page:
daycare
Currently:
There's a form for selecting a pkmn:
<form method="post" ... > ...
</form>
Proposed code:
<form method="post" action="/daycare" ...
> ... </form>
Note:
This will probably be hard to implement since the form is part of the pkmn picker which is used over multiple pages.