From 96d78860f8de10005d4b212fe40e7f8c38b32a2b Mon Sep 17 00:00:00 2001 From: Index Date: Mon, 22 Jul 2024 20:14:24 -0500 Subject: [PATCH] minor: avatar sandbox trofie shortcut --- js/account/avatar-sandbox.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/account/avatar-sandbox.js b/js/account/avatar-sandbox.js index 8bcb002..02822cc 100644 --- a/js/account/avatar-sandbox.js +++ b/js/account/avatar-sandbox.js @@ -271,6 +271,10 @@ async function PageLoad() { const LoadAssetType = document.getElementById('load-asset-type') LoadAsset.addEventListener('click', function(){ const SelectedType = LoadAssetType.options[LoadAssetType.selectedIndex].value + + if (LoadAsset.previousElementSibling.value === "trofie") { + LoadAsset.previousElementSibling.value = 31501 + } if (SelectedType !== 'user') { if (SelectedType === 'hat') { @@ -286,6 +290,8 @@ async function PageLoad() { } else { LoadUser(LoadAsset.previousElementSibling.value) } + + LoadAsset.previousElementSibling.value = "" }) const SaveButton = document.getElementById('saveOutfit')