From efcbef7c2bcc6d092fcb7be8b37a649c3f533e95 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Mon, 17 Feb 2020 16:44:40 -0500 Subject: [PATCH] add tooltips for fs clothing --- src/js/wardrobeUse.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/wardrobeUse.js b/src/js/wardrobeUse.js index e6f0adfa414..199d5a31034 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); } -- GitLab