diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index a4c0b513a..139f66247 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -133,6 +133,7 @@ buf = '
'; buf += '
'; this.$el.html(buf); + this.$('.teamedit textarea').focus().select(); return; } @@ -532,6 +533,7 @@ buf += ''; } this.$el.html('
' + buf + '
'); + this.$(".teamedit textarea").focus().select(); if ($(window).width() < 640) this.show(); }, renderSet: function (set, i) { @@ -814,7 +816,8 @@ .show() .find('textarea') .val(Storage.exportTeam([this.curSet]).trim()) - .focus(); + .focus() + .select(); }, closePokemonImport: function (force) { if (!this.wasViewingPokemon) return this.back();