diff --git a/AxonIvyPortal/portal/webContent/layouts/includes/topbar.xhtml b/AxonIvyPortal/portal/webContent/layouts/includes/topbar.xhtml index dd95d5f82b..bef0bb7f12 100644 --- a/AxonIvyPortal/portal/webContent/layouts/includes/topbar.xhtml +++ b/AxonIvyPortal/portal/webContent/layouts/includes/topbar.xhtml @@ -50,7 +50,7 @@ - diff --git a/AxonIvyPortal/portal/webContent/resources/js/portal.js b/AxonIvyPortal/portal/webContent/resources/js/portal.js index 48e5a524a4..23b43079dd 100644 --- a/AxonIvyPortal/portal/webContent/resources/js/portal.js +++ b/AxonIvyPortal/portal/webContent/resources/js/portal.js @@ -389,11 +389,15 @@ function getWidgetVarById(id) { } -function reloadIframes() { - var iframes = document.querySelectorAll('iframe'); - iframes.forEach(function(iframe) { - iframe.contentWindow.location.reload(); - }); +function reloadIframesInsidePortalAIChat() { + var iframeInsidePortalAIChat = document.getElementById('iFrame'); + if (iframeInsidePortalAIChat) { + var contentInsideIframe = iframeInsidePortalAIChat.contentDocument || iframeInsidePortalAIChat.contentWindow.document; + var iframes = contentInsideIframe.getElementsByClassName('message-iframe'); + for (let item of iframes) { + item.src = item.src; + } + } } function handleKeyDown(event) {