From c8bf5f889c9d8a362c361871449a52375bd10830 Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Fri, 29 Sep 2023 23:03:05 -0500 Subject: [PATCH] More integration shit --- js/client-teambuilder.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/js/client-teambuilder.js b/js/client-teambuilder.js index 6058970016..7d9853359e 100644 --- a/js/client-teambuilder.js +++ b/js/client-teambuilder.js @@ -478,17 +478,21 @@ } } - buf += ''; + buf += '

'; if (atLeastOne) { - buf += '

'; + buf += ' '; } + buf += ''; + buf += '

'; if (window.nodewebkit) { buf += ' '; } else if (this.curFolder) { buf += ''; } else if (atLeastOne) { - buf += '

Clearing your cookies (specifically, localStorage) will delete your teams. Browsers sometimes randomly clear cookies - you should back up your teams or use the desktop client if you want to make sure you don\'t lose them.

'; + buf += '

Clearing your cookies (specifically, localStorage) will delete your teams. '; + buf += 'Browsers sometimes randomly clear cookies - you should upload your teams to the Showdown database '; + buf += 'or make a backup yourself if you want to make sure you don\'t lose them.

'; buf += ''; buf += '

If you want to clear your cookies or localStorage, you can use the Backup/Restore feature to save your teams as text first.

'; var self = this; @@ -866,6 +870,7 @@ this.exported = true; $('button[name=psExport]').addClass('disabled'); $('button[name=psExport]')[0].disabled = true; + $('label[name=editMessage]').hide(); }, pokepasteExport: function (type) { var team = Storage.exportTeam(this.curSetList, this.curTeam.gen, type === 'openteamsheet'); @@ -988,6 +993,7 @@ this.exported = false; $('button[name=psExport]').removeClass('disabled'); $('button[name=psExport]')[0].disabled = false; + $('label[name=editMessage]').show(); } // We're going to try to animate the team settling into its new position @@ -1173,6 +1179,8 @@ return false; }; if (this.loadingTeam) buf += '
Downloading team from server...
'; + buf += '
'; if (exports.BattleFormats) { buf += '
  • '; buf += '';