From e1759daa001a3f496e4161413ceff25f2a444dbf Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 19 Aug 2026 10:47:48 -0400 Subject: [PATCH] Show in-window message in style preview instead of progress popup Since 30b5bf4bb9, the popup opens as a dependent window of the main window, so it appeared behind the Style Preview window and, on Windows, brought the main window to the front. https://forums.zotero.org/discussion/133296/ --- chrome/content/zotero/tools/cslpreview.js | 10 ++-------- chrome/locale/en-US/zotero/zotero.ftl | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/tools/cslpreview.js b/chrome/content/zotero/tools/cslpreview.js index a448830c6f..ef70c027e7 100644 --- a/chrome/content/zotero/tools/cslpreview.js +++ b/chrome/content/zotero/tools/cslpreview.js @@ -47,14 +47,8 @@ var Zotero_CSL_Preview = new function () { this.updateIframe(Zotero.getString('styles.editor.warning.noItems'), 'warning'); return; } - var progressWin = new Zotero.ProgressWindow(); - // XXX needs its own string really! - progressWin.changeHeadline(Zotero.getString("pane.items.menu.createBib.multiple")); - var icon = 'chrome://zotero/skin/treeitem-attachment-file.png'; - progressWin.addLines(document.title, icon); - progressWin.show(); - progressWin.startCloseTimer(); - // Give progress window time to appear + this.updateIframe(Zotero.ftl.formatValueSync('stylePreview-generating')); + // Let the message paint before generation blocks the main thread setTimeout(() => { var d = new Date(); var styles = Zotero.Styles.getVisible(); diff --git a/chrome/locale/en-US/zotero/zotero.ftl b/chrome/locale/en-US/zotero/zotero.ftl index a5c5372542..a1a778299c 100644 --- a/chrome/locale/en-US/zotero/zotero.ftl +++ b/chrome/locale/en-US/zotero/zotero.ftl @@ -552,6 +552,8 @@ styleEditor-editor = styleEditor-preview = .aria-label = Preview +stylePreview-generating = Generating previews… + publications-intro-page = My Publications publications-intro = Items you add to My Publications will be shown on your profile page on zotero.org. If you choose to include attached files, they will be made publicly available under the license you specify. Only add work you yourself have created, and only include files if you have the rights to distribute them and wish to do so.