From 2c2b1cf6f06991ae803c72a4195b3ead32637932 Mon Sep 17 00:00:00 2001 From: Leandro W Osorio Date: Mon, 22 Sep 2025 12:49:16 -0400 Subject: [PATCH] Fix: Update iframe selector to use 'preview-iframe' class The 'Open in New Tab' button was not working because it was looking for an iframe with class 'preview', but the UI revamp changed it to 'preview-iframe'. This updates the JavaScript selector to match. - Update to in open-preview click handler - Update to in refreshPreview function Fixes the bug where clicking 'Open in New Tab' opened a blank page. --- src/registry/views/static/info.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registry/views/static/info.ts b/src/registry/views/static/info.ts index 8b552f15..ad7851f0 100644 --- a/src/registry/views/static/info.ts +++ b/src/registry/views/static/info.ts @@ -25,7 +25,7 @@ oc.cmd.push(function() { url += splitted[1]; } - $('.preview').attr('src', url); + $('.preview-iframe').attr('src', url); return false; }; @@ -95,7 +95,7 @@ oc.cmd.push(function() { $('.open-preview').click(function() { refreshPreview(); - var url = $('.preview').attr('src'); + var url = $('.preview-iframe').attr('src'); window.open(url, '_blank'); return false;