Forum Thread
GTS Bug
Forum-Index → Bug Reports → Resolved → GTS BugKitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
When I go to press select on a Pokemon it will reload the page and send me back to the main gts page, even on just trying to offer on private trade or public trades. Sometimes it takes a dozen tries or more to be able to set up one trade or even to make an offer. I can't get a screen shot when it does the reload or I would be putting it in here.
It is an every time thing with trying to use the gts currently. So I've been rarely using it when I can avoid it which is hard to avoid using it much.
Kitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
That I'm afraid I'm all out of ideas to show proof [and be able to help better] :/
Kitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
Then, try to set up a trade on your computer, while holding your recording phone in front of it.
Kitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
If anyone can add any additional information that could help pinpoint the cause, please say so. I'm all out of ideas ^^'
Kitties! Riako has no idea what he unleashed with that update🙀
Collecting Lovely Larvesta and Silly Seel Plushies~
Looking for Ice Gems and Flying Gems here! Help me hunt a Shiny Articuno!
(You can win your own non-shiny Articuno in return)
Breeding events for the cause here!
So the button to add a pkmn to a trade actually does go to "http://pokeheroes.com/gts_new". In code this is kind of overwritten with the following:
window.setTimeout(function() {
$("form#pkmn_select").submit(function(event) {
addPkmnToTrade();
event.preventDefault();
});
}, 1000);
$("form#pkmn_select").submit(function(event) {
addPkmnToTrade();
event.preventDefault();
});
}, 1000);
When you submit (press the button) the page will wait 1 second before doing so. If addPkmnToTrade(); takes longer than 1 second the page will reload, otherwise event.preventDefault(); will prevent this, which is the desired functionality.
So this bug is just there for people with slow internet.
Solve
File: /javascripts/pkmn_select_fixed/select_form.php
Current code: <input type="submit" value="Select" style="margin: 4px 0px">
Desired code: <button onclick="addPkmnToTrade();" style="margin: 4px 0px">Select</button>
Sidenote: The above will probably break functionality elsewhere since it's also used on other pages as well. I am not going to look for a general solution, I'm pretty sure you can handle it from here.
articuno13: Please open a new Bug report when you encounter a bug that is different to the one that was originally described in the first post. :)