From a7b9fe5f3efc56c1d9d351af553a229e4c298acf Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Fri, 29 Sep 2023 22:36:41 -0500 Subject: [PATCH] Properly disable buttons --- js/client-teambuilder.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index 5660699ab3..a9eb535385 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -863,6 +863,7 @@ app.send(cmd + " " + buf.join(', ')); this.exported = true; $('button[name=psExport]').addClass('disabled'); + $('button[name=psExport]')[0].disabled = true; }, pokepasteExport: function (type) { var team = Storage.exportTeam(this.curSetList, this.curTeam.gen, type === 'openteamsheet'); @@ -984,6 +985,7 @@ app.user.trigger('saveteams'); this.exported = false; $('button[name=psExport]').removeClass('disabled'); + $('button[name=psExport]')[0].disabled = false; } // We're going to try to animate the team settling into its new position