From 9dda9609e2418341617770155ea56d8931c19d94 Mon Sep 17 00:00:00 2001 From: oeway Date: Wed, 5 Jun 2024 15:12:21 +0000 Subject: [PATCH] Deploy to GitHub Pages 681bae5e37192c1562dbca89d9185d37248649b0 --- chat/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chat/index.html b/chat/index.html index f2ecd53f..87c02d39 100644 --- a/chat/index.html +++ b/chat/index.html @@ -1503,11 +1503,14 @@

Welcome to BioImage.IO Chatbot

const atAssistantButton = document.getElementById("at-buttons"); atAssistantButton.innerHTML = Object.values(allAssistants).map((a) => { - return `
  • ${a.alias}(${a.name})
  • ` + if(a.name !== assistantName) + return `
  • ${a.alias} (${a.name})
  • ` + else + return "" }).join("\n"); // Get all the dropdown items - const dropdownItems = document.querySelectorAll('.dropdown-item'); + const dropdownItems = document.querySelectorAll('.at-button'); // Add a 'click' event listener to each dropdown item dropdownItems.forEach(item => {