diff --git a/src/js/wardrobeUse.js b/src/js/wardrobeUse.js index e6f0adfa414ad3c16d645105c21b19a2d75d40b1..199d5a31034aeb6eeb990939e1d0f0dd307e7c90 100644 --- a/src/js/wardrobeUse.js +++ b/src/js/wardrobeUse.js @@ -24,7 +24,7 @@ App.UI.Wardrobe.clothes = function(slave) { updateSlave: {clothes: item.value} }; if (item.fs) { - clothingOption.prefix = `FS`; + clothingOption.prefix = item.fs; } if (item.comfort === "nice") { niceOptionsArray.push(clothingOption); @@ -105,9 +105,11 @@ App.UI.Wardrobe.clothes = function(slave) { ); if (array[i].prefix) { - let prefix = document.createElement('span'); + let prefix = array[i].prefix.substring(2); + prefix = capFirstChar(prefix); + prefix = prefix.replace(/([A-Z])/g, ` $1`); + prefix = App.UI.DOM.disabledLink(`FS`, [prefix]); prefix.style.fontStyle = "italic"; - prefix.textContent = `${array[i].prefix}`; link.appendChild(prefix); }