From 78b121accd6b724da4be646ba963d76ff9128e66 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 26 Sep 2023 14:40:21 +0800 Subject: [PATCH] add getGlobalStockSymbol(this.innerText) to each li item for global stocks --- static/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index b0f2bd8..74d644b 100755 --- a/static/app.js +++ b/static/app.js @@ -1131,7 +1131,11 @@ allFeaturesTextAddBtn.map((value, index) => { } else if (index == 1) { tag.innerHTML = allFeaturesText[index].value; tag.setAttribute("onclick", "getCryptoSymbol(this.innerText)"); - } else { + } else if (index == 26) { + tag.innerHTML = allFeaturesText[index].value; + tag.setAttribute("onclick", "getGlobalStockSymbol(this.innerText)"); + } + else { tag.innerHTML = allFeaturesText[index].value; } allFeatures[index].appendChild(tag);